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:
- Detect the dominant newline character of a string☆55Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Check if a file path is a binary file☆44Updated last year
- Strip the final newline character from a string/buffer☆36Updated 7 months ago
- ES spec-compliant shim for String.prototype.padStart☆23Updated 2 months ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated last year
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Get the version of a binary in semver format☆35Updated last year
- 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 2 years ago
- Get the number of days in a month☆27Updated 3 years ago
- Check if your code is running in a JXA environment☆31Updated 3 years ago
- Check if a path is inside another path☆38Updated 2 years ago
- Check if an Array is sorted☆34Updated 3 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Check if a file path is a compressed file☆17Updated last year
- Regular expression for matching issue references☆49Updated 8 months ago
- Lowercase the keys of an object☆40Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 10 months ago
- Split a string at one or more indices☆23Updated 4 years ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Linkify GitHub issue references☆46Updated 8 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago