mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 00:51:05 +03:30
16 lines
269 B
JavaScript
Vendored
16 lines
269 B
JavaScript
Vendored
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);
|
|
};
|