Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆63Sep 18, 2026Updated this week
Alternatives and similar repositories for file-url
Users that are interested in file-url are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated this week
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Updated this week
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆23Updated this week
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Get free disk space info from `df -kP`☆63Updated this week
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- ES2015 Math.imul() ponyfill☆11Oct 30, 2023Updated 2 years ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 5 years ago
- Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆29Aug 9, 2021Updated 5 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated last year
- Split a string at one or more indices☆25May 3, 2021Updated 5 years ago
- Lowercase the keys of an object☆42Updated this week
- Check if a number is a redirect HTTP status code☆25Updated this week
- ES2015 Math.hypot() ponyfill☆12Apr 7, 2021Updated 5 years ago
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 4 years ago
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Check if a file path is a binary file☆49Updated this week
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Updated this week
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆55Updated this week
- Get the URL from a web shortcut file☆15Aug 14, 2021Updated 5 years ago
- Check if a value is a function☆29May 3, 2021Updated 5 years ago
- Check if a value is a Blob☆24Updated this week
- Check if a path is the current working directory☆22Updated this week
- Create a MD5 hash with hex encoding☆46Updated this week
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆95Updated this week
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 5 years ago
- Get the version of a binary in semver format☆43Updated this week
- Recursively create nested directories with jsftp, like mkdirp☆22Aug 9, 2021Updated 5 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 5 years ago
- Modify the filename in a path☆17Updated this week
- Get the maximum permitted length of a path of a Unix domain socket☆14Aug 16, 2021Updated 5 years ago
- Strip comments from CSS☆29Nov 1, 2023Updated 2 years ago
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Get all email addresses in a string☆61Feb 2, 2026Updated 7 months ago
- Get the UTI (Uniform Type Identifier) of a file on macOS☆25Oct 7, 2021Updated 4 years ago
- Get the path of the current directory in Finder (macOS)☆16Apr 15, 2021Updated 5 years ago
- Get bundle identifier from a bundle name (macOS): Safari → com.apple.Safari☆18Aug 9, 2021Updated 5 years ago
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 2 years ago
- Check if a string is email like☆25Nov 11, 2025Updated 10 months ago
- Check if something is a generator function☆24Updated this week