encode-path-to-uri
v0.1.0
Published
An NPM package to encode local paths to a URI path
Readme
A simple NPM to convert local file locations into URI acceptable strings.
How to install
npm install --save encode-path-to-uriExample 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