Blame view

node_modules/stylus/lib/functions/pathjoin.js 331 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  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;