uri-join

1.0.1 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i uri-join

Weekly Downloads

71

Version

1.0.1

License

Apache-2.0

Last publish

Collaborators

  • lossyrob