UNPKG

stylus-pro

Version:

Robust, expressive, and feature-rich CSS superset

16 lines (13 loc) 289 B
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, '/'); };