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
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Check if a file path is a binary file☆45Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Wait for a specified number of promises to be fulfilled☆36Updated last year
- Strip the final newline character from a string/buffer☆36Updated 7 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- ES spec-compliant shim for String.prototype.padStart☆23Updated 3 months ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Slice a string with ANSI escape codes☆47Updated last year
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated last year
- Get the user home directory with fallback to the system temp directory☆30Updated 4 years ago
- Check if a path is a file, directory, or symlink☆78Updated 10 months ago
- Linkify GitHub issue references☆46Updated 8 months ago
- Regular expression for matching issue references☆49Updated 8 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Create an array without duplicates☆71Updated 4 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Get the number of days in a month☆27Updated 3 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 a path is inside another path☆38Updated 2 years ago