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

17 lines
347 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +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;