sindresorhus / file-urlLinks
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆63Updated 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:
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Extract the article title of a HTML document☆56Updated 3 months ago
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Create a MD5 hash with hex encoding☆47Updated 2 years ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆41Updated 4 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Check if an Array is sorted☆35Updated 4 years ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Updated last year
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Updated 3 years ago
- Create an array without duplicates☆74Updated 4 years ago
- Strip the final newline character from a string/buffer☆38Updated last year
- Check if a number is in a given range☆22Updated 4 years ago
- Get the version of a binary in semver format☆42Updated last year
- Get the fullname of the current user☆48Updated 2 years ago
- Check if your code is running as an npm or yarn script☆65Updated 3 months ago
- Linkify GitHub issue references☆47Updated 3 months ago
- Lowercase the keys of an object☆41Updated 2 years ago
- Mimic a Node.js HTTP response stream☆61Updated 2 years ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Copy a file☆122Updated 4 months ago
- Simple wildcard matching☆34Updated 3 months ago
- Get the user's default shell☆41Updated 3 months ago
- Slice a string with ANSI escape codes☆50Updated 3 months ago