Skip to content

Commit

Permalink
feat: add path join
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Mar 31, 2020
1 parent 8394acf commit a535e42
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/path-join.browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict'

function join (...args) {
if (args.length === 0) {
return '.'
}

return args.join('/')
}

module.exports = join
3 changes: 3 additions & 0 deletions src/path-join.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict'

module.exports = require('path').join

0 comments on commit a535e42

Please sign in to comment.