uri-join
v1.0.1
Published
A `path.join` that handles URIs with protocols.
Downloads
292
Readme
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'