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

17 lines
331 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
var path = require('path');
/**
* Peform a path join.
*
* @param {String} path
* @return {String}
* @api public
*/
(module.exports = function pathjoin(){
var paths = [].slice.call(arguments).map(function(path){
return path.first.string;
});
return path.join.apply(null, paths).replace(/\\/g, '/');
}).raw = true;