file-url : Convert a path to a file url: `unicorn.jpg` ? `file:///Users/sindresorhus/unicorn.jpg`. You can installing file-url npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install file-url $ sudo npm install -g file-url
If want to update the file-url package execute the command as below,
$ sudo npm update file-url
Update package globally,
$ npm install -g file-url
$ sudo git clone https://github.com/rektide/file-url.git
$ sudo npm install -g ./file-url
file-url@2.0.2 /usr/lib/node_modules/file-url
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall file-url
Package Name | file-url |
Version | 2.0.2 |
Description | Convert a path to a file url: `unicorn.jpg` ? `file:///Users/sindresorhus/unicorn.jpg` |
Released Date | 2017-01-29T07:47:56.194Z |
Published by | sindresorhus |
How to Learn | https://www.npmjs.com/package/file-url/tutorial |