Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
331 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var 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.