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