Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆64Sep 18, 2026Updated 2 months ago
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:
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 3 years ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 5 years ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 5 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated 2 months ago
- Get the maximum permitted length of a path of a Unix domain socket☆14Aug 16, 2021Updated 5 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.
- ES2015 Math.imul() ponyfill☆11Oct 30, 2023Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Sep 18, 2026Updated 2 months ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Get the path to the user home directory☆13Apr 9, 2021Updated 5 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated last year
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- Modify the filename in a path☆17Sep 18, 2026Updated 2 months ago
- ES2015 Math.hypot() ponyfill☆12Apr 7, 2021Updated 5 years ago
- Get the avatar of a GitHub user☆21Oct 14, 2021Updated 5 years ago
- Simple, predictable pricing with DigitalOcean hosting • AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆12Oct 30, 2023Updated 3 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 5 years ago
- Split a string at one or more indices☆25May 3, 2021Updated 5 years ago
- Check if a value is a function☆29May 3, 2021Updated 5 years ago
- Get a random property from an object☆15Jul 2, 2024Updated 2 years ago
- Check if a string is email like☆25Nov 11, 2025Updated last year
- Get free disk space info from `df -kP`☆63Sep 18, 2026Updated 2 months ago
- Get the path of the current directory in Finder (macOS)☆17Apr 15, 2021Updated 5 years ago
- Recursively create nested directories with jsftp, like mkdirp☆22Aug 9, 2021Updated 5 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Get all email addresses in a string☆62Feb 2, 2026Updated 9 months ago
- Get bundle identifier from a bundle name (macOS): Safari → com.apple.Safari☆19Aug 9, 2021Updated 5 years ago
- Convert a time string to seconds: '0017' → 1337☆37May 3, 2021Updated 5 years ago
- Check if a number is a redirect HTTP status code☆25Sep 18, 2026Updated 2 months ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated 2 months ago
- Get user info from a GitHub username☆24Oct 14, 2021Updated 5 years ago
- Turn an object into a string of HTML attributes☆53Jun 28, 2026Updated 4 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆95Sep 18, 2026Updated 2 months ago
- Get the version numbers of a package from the npm registry☆31Feb 26, 2024Updated 2 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- ES2015 Math.acosh() ponyfill☆14Apr 7, 2021Updated 5 years ago
- Modify the source of an imported module☆28Jan 23, 2021Updated 5 years ago
- Check if something is a promise☆45Sep 18, 2026Updated 2 months ago
- Strip UTF-8 byte order mark (BOM)☆22Sep 15, 2025Updated last year
- Get bundle name from a bundle identifier (macOS): com.apple.Safari → Safari☆18Mar 7, 2021Updated 5 years ago
- Get an array of parent directories including itself☆26Nov 7, 2023Updated 3 years ago
- Get the path of the current directory in Finder (macOS) and Explorer (Windows)☆27Aug 10, 2021Updated 5 years ago
Are these results useful?