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
- Create a MD5 hash with hex encoding☆45Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Extract the article title of a HTML document☆55Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 9 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 3 years ago
- Regular expression for matching a shebang line☆46Updated 4 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Split a string at one or more indices☆23Updated 4 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Check if something is a generator function☆22Updated 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
- Check if your package was installed globally☆70Updated last year
- Get the version of a binary in semver format☆41Updated last year
- Check if argv has a specific flag☆93Updated 4 years ago
- Linkify GitHub issue references☆47Updated 2 weeks ago
- Lowercase the keys of an object☆40Updated 2 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Regular expression for matching reserved filename characters☆50Updated 3 years ago
- Regular expression for matching issue references☆49Updated 10 months ago
- Get the fullname of the current user☆47Updated last year
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year