Sha256: 784acab8ea0a92eb305f72e01b8acdcc81be2e94bba80529622162a2c7c9816c

Contents?: true

Size: 293 Bytes

Versions: 39

Compression:

Stored size: 293 Bytes

Contents

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

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

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

Version data entries

39 entries across 20 versions & 2 rubygems

Version Path
ela-3.4.0 node_modules/stylus/lib/functions/basename.js
ela-3.4.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-3.3.1 node_modules/stylus/lib/functions/basename.js
ela-3.3.1 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-3.3.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-3.3.0 node_modules/stylus/lib/functions/basename.js
ela-3.2.0 node_modules/stylus/lib/functions/basename.js
ela-3.2.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-3.1.1 node_modules/stylus/lib/functions/basename.js
ela-3.1.1 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-3.1.0 node_modules/stylus/lib/functions/basename.js
ela-3.1.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-3.0.0 node_modules/stylus/lib/functions/basename.js
ela-3.0.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-2.0.0 node_modules/stylus/lib/functions/basename.js
ela-2.0.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-1.1.0 node_modules/nib/node_modules/stylus/lib/functions/basename.js
ela-1.1.0 node_modules/stylus/lib/functions/basename.js
stylus-source-0.54.5 vendor/lib/functions/basename.js