sindresorhus / file-urlLinks
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆61Updated 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☆54Updated 4 years ago
- Extract the article title of a HTML document☆55Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 3 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Linkify GitHub issue references☆46Updated 10 months ago
- Check if argv has a specific flag☆95Updated 4 years ago
- Check if an Array is sorted☆34Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated last year
- Create an array without duplicates☆71Updated 4 years ago
- Split a string at one or more indices☆23Updated 4 years ago
- Get the user's default shell☆40Updated 3 years ago
- Split lines into an array of lines☆44Updated last year
- Get the version of a binary in semver format☆42Updated last year
- Decompress a HTTP response if needed☆72Updated last year
- Regular expression for matching a shebang line☆46Updated 3 years ago
- Find multiple RegExp matches in a string☆92Updated 3 years ago
- Slice a string with ANSI escape codes☆49Updated last year
- Regular expression for matching issue references☆49Updated 10 months ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 5 months ago
- Create a lazily evaluated value☆70Updated 4 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 3 years ago