Sha256: 42a1fe9e7ce2ec9ec8d7bc6f3e1a0acd409e507ce6b4fcbfeaa1b73a21847202

Contents?: true

Size: 269 Bytes

Versions: 39

Compression:

Stored size: 269 Bytes

Contents

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

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

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

Version data entries

39 entries across 20 versions & 2 rubygems

Version Path
ela-4.1.6 node_modules/stylus/lib/functions/extname.js
ela-4.1.6 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.1.5 node_modules/stylus/lib/functions/extname.js
ela-4.1.5 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.1.4 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.1.4 node_modules/stylus/lib/functions/extname.js
ela-4.1.3 node_modules/stylus/lib/functions/extname.js
ela-4.1.3 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.1.2 node_modules/stylus/lib/functions/extname.js
ela-4.1.2 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.1.1 node_modules/stylus/lib/functions/extname.js
ela-4.1.1 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.1.0 node_modules/stylus/lib/functions/extname.js
ela-4.1.0 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-4.0.0 node_modules/stylus/lib/functions/extname.js
ela-4.0.0 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-3.4.3 node_modules/stylus/lib/functions/extname.js
ela-3.4.3 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-3.4.2 node_modules/nib/node_modules/stylus/lib/functions/extname.js
ela-3.4.2 node_modules/stylus/lib/functions/extname.js