You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemmionic5/Mohem/node_modules_/stylus/lib/functions/extname.js

16 lines
269 B
JavaScript

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);
};