sindresorhus / file-urlView external linksLinks
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆63Apr 1, 2024Updated last year
Alternatives and similar repositories for file-url
Users that are interested in file-url are comparing it to the libraries listed below
Sorting:
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 3 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- 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`☆64Sep 13, 2025Updated 5 months ago
- Check if a string is email like☆25Nov 11, 2025Updated 3 months ago
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆28Aug 9, 2021Updated 4 years ago
- Get the arguments of a function, arrow function, generator function, async function☆54Oct 30, 2023Updated 2 years ago
- Convert a Source Map object to a comment☆16Aug 9, 2021Updated 4 years ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Strip comments from JSON. Lets you use comments in your JSON files!☆26Nov 1, 2023Updated 2 years ago
- Include only certain items in an array☆19Jun 13, 2025Updated 8 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Apr 3, 2024Updated last year
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 4 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Create a MD5 hash with hex encoding☆48Nov 6, 2023Updated 2 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- ES2015 Math.imul() ponyfill☆11Oct 30, 2023Updated 2 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Check if something is a promise☆45Apr 16, 2021Updated 4 years ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Strip comments from CSS☆29Nov 1, 2023Updated 2 years ago
- Recursively create nested directories with jsftp, like mkdirp☆22Aug 9, 2021Updated 4 years ago
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Get a random key from an object☆18Jul 2, 2024Updated last year