join-path-js

v0.0.0
Simple path join and dirname functions for generic javascript
path js join

join-path

Simple path join and dirname functions for generic javascript, a small package of this gist, big thank to @creationix.

Why

Nodejs have buildin some great url manipulation, but native javascript don't. Use this package with browserify, to make url manipulation in frontend possible.

Install

npm install join-path-js

Sample

var assert = require('assert');
var join = require('join-path');

it("should join the path", function() {
  assert.equal('/test/wow/this/is/awesome', join('/test/', './wow/this/is/awesome'))
})

License

MIT

npm i join-path-js

Metadata

  • MIT
  • Whatever
  • chilijung
  • released 1/16/2015

Downloads

Maintainers