Skip to content

Convert relative file system paths into safe URI paths

License

MIT, WTFPL licenses found

Licenses found

MIT
LICENSE-MIT
WTFPL
LICENSE-WTFPL
Notifications You must be signed in to change notification settings

UltCombo/uri-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uri-path

NPM version Build Status devDependency Status

Convert relative file system paths into safe URI paths

Install

npm install --save uri-path

Usage

var URIpath = require('uri-path');

// Properly encode URI path segments
URIpath('../abc/@#$%¨&()[]{}-_= ß/môòñ 月 قمر');
// -> '../abc/@#$%¨&()[]{}-_=+ß/môòñ 月 قمر'

// Also supports paths with Windows directory separators
URIpath('a\\b\\c');
// -> 'a/b/c'

About

Convert relative file system paths into safe URI paths

Resources

License

MIT, WTFPL licenses found

Licenses found

MIT
LICENSE-MIT
WTFPL
LICENSE-WTFPL

Stars

Watchers

Forks

Packages

No packages published