encode-path-to-uri

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i encode-path-to-uri

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

37 kB

Total Files

4

Last publish

Collaborators

  • nitrogen