file-url-cli

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

Usage no npm install needed!

<script type="module">
  import fileUrlCli from 'https://cdn.skypack.dev/file-url-cli';
</script>

README

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