1.0.1 • Published 9 years ago

uri-join v1.0.1

Weekly downloads
21
License
Apache-2.0
Repository
github
Last release
9 years ago

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'