Converts a `file:` URI into a regular file path string suitable for use with Node.js `fs` module functions. Useful when you need to turn URI-style input (for example, `file:///...`) into a path your code can read from.
Project status
- Maintenance status: Appears quiet or in maintenance mode, with the last upstream push on 2022-05-24 and no version updates since 2.0.0 (2019-10-11).
- Update cadence: Sparse and multi-year, with updates only in 2017 (1.0.0), 2019 (2.0.0), and no additional version updates shown after that.
AI summary generated
Recent updates
2.0.0
This release is a major refactor that converts the library from plain JavaScript with an in-repo .d.ts to a TypeScript source build. It also switches CI from Travis to GitHub Actions and sets an explicit Node engine minimum.
BreakingFeatures1.0.0
No publisher release notes were provided for version 1.0.0. The code diff shows a 1.0.0 release that primarily changes how `fileUriToPath` decodes `file://` URIs (switching from `unescape` to `decodeURI`), and adds TypeScript typings plus supporting metadata (README, LICENSE, Travis CI config, and updated tests).
Features