0.1.0 • Published 6 years ago

encode-path-to-uri v0.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

A simple NPM to convert local file locations into URI acceptable strings.

How to install

npm install --save encode-path-to-uri

Example on usage

const encodePathToUri = require('encode-path-to-uri');

const encodedPath = encodePathToUri('/home/user/caffiend/How to brew coffee.pdf');
console.log(encodedpath); // /home/user/caffiend/How%20to%20brew%20coffee.pdf