Package Exports
- encode-path-to-uri
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (encode-path-to-uri) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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