source: trip-planner-front/node_modules/stylus/lib/functions/pathjoin.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 331 bytes
RevLine 
[6a3a178]1var path = require('path');
2
3/**
4 * Peform a path join.
5 *
6 * @param {String} path
7 * @return {String}
8 * @api public
9 */
10
11(module.exports = function pathjoin(){
12 var paths = [].slice.call(arguments).map(function(path){
13 return path.first.string;
14 });
15 return path.join.apply(null, paths).replace(/\\/g, '/');
16}).raw = true;
Note: See TracBrowser for help on using the repository browser.