npm.io
1.0.1 • Published 10 years ago

uri-join

Licence
Apache-2.0
Version
1.0.1
Deps
1
Vulns
0
Weekly
0

uri-join

This module is a function for joining paths, where the first might have a protocol. Think path.join that can handle something like joining s3://bucket-name and folder-name.

var uriJoin = require("uri-join");

Example:

uriJoin("/local/file", "path")         // '/local/file/path'
uriJoin("s3://remote/file", "path")    // 's3://remote/file/path'

Keywords