sindresorhus / file-url
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆61Updated 11 months ago
Alternatives and similar repositories for file-url:
Users that are interested in file-url are comparing it to the libraries listed below
- Strip redundant indentation and indent the string☆54Updated 3 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☆44Updated 10 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the directory of globally installed packages and binaries☆75Updated last year
- Create a MD5 hash with hex encoding☆45Updated last year
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Expands symbolic links and prints the resolved absolute filepath☆26Updated 10 months ago
- Get metadata on the default editor or a specific editor☆53Updated last year
- Strip the final newline character from a string/buffer☆36Updated 4 months ago
- Break out of a promise chain☆23Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated 7 months ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 3 years ago
- Get the version of a binary in semver format☆35Updated 11 months ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated 11 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Get the user home directory with fallback to the system temp directory☆30Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Slice a string with ANSI escape codes☆47Updated 9 months ago
- Get the version of a binary in semver format☆42Updated 11 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Pick random items from a list☆54Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 weeks ago
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated 10 months ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 3 years ago