Skip to content

Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`

License

Notifications You must be signed in to change notification settings

sindresorhus/file-url-cli

Repository files navigation

file-url-cli

Convert a path to a file URL: unicorn.jpgfile:///Users/sindresorhus/unicorn.jpg

Install

$ npm install --global file-url-cli

Usage

$ file-url --help

  Usage
    $ file-url [path]

  Example
    $ file-url
    file:///Users/sindresorhus/dev/file-url

About

Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published