Files
cssd-back/node_modules/stylus/lib/functions/dirname.js
T
2019-07-15 13:07:31 +04:30

16 lines
289 B
JavaScript
Vendored

var utils = require('../utils')
, path = require('path');
/**
* Return the dirname of `path`.
*
* @param {String} path
* @return {String}
* @api public
*/
module.exports = function dirname(p){
utils.assertString(p, 'path');
return path.dirname(p.val).replace(/\\/g, '/');
};