hexo/node_modules/stylus/lib/functions/extname.js

18 lines
319 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
var utils = require('../utils')
, path = require('path');
/**
* Return the extname of `path`.
*
* @param {String} path
* @return {String}
* @api public
*/
function extname(p){
utils.assertString(p, 'path');
return path.extname(p.val);
};
extname.params = ['p'];
module.exports = extname;