Skip to content

holepunchto/url-file-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-file-url

Small module that converts from URLs to filenames to URLs

npm install url-file-url

Useful for embedded runtimes with no url module.

Usage

const { fileURLToPath, pathToFileURL } = require('url-file-url')

pathToFileURL('/foo/bar') // file:///foo/bar
fileURLToPath('file:///foo/bar') // /foo/bar

License

Apache-2.0

About

Small module that converts from URLs to filenames to URLs

Resources

License

Stars

Watchers

Forks

Packages

No packages published