sindresorhus / file-url
Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
☆60Updated 7 months ago
Related projects ⓘ
Alternatives and complementary repositories for file-url
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Returns an array filled with the specified input☆43Updated 2 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Get the directory of globally installed packages and binaries☆75Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Extract the article title of a HTML document☆54Updated 2 years ago
- Strip the final newline character from a string/buffer☆35Updated 3 weeks ago
- Check if a file path is a binary file☆43Updated 6 months ago
- Get the user home directory with fallback to the system temp directory☆30Updated 3 years ago
- Check if a value is an object☆40Updated 3 years ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Simple wildcard matching☆34Updated 3 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated 7 months ago
- Slice a string with ANSI escape codes☆47Updated 6 months ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 6 months ago
- Linkify GitHub issue references☆46Updated last month
- Get the version of a binary in semver format☆42Updated 7 months ago
- Run promise-returning & async functions a specific number of times concurrently☆38Updated 3 years ago
- Wait for a specified number of promises to be fulfilled☆36Updated last year
- Expands symbolic links and prints the resolved absolute filepath☆25Updated 6 months ago
- A better `Promise.race()`☆46Updated last year
- Check if a path is a file, directory, or symlink☆75Updated 3 months ago
- Split a string at one or more indices☆23Updated 3 years ago
- Track the list of currently unhandled promise rejections☆24Updated 5 years ago
- Check if a number is in a given range☆21Updated 3 years ago
- Stylelint shareable config for XO☆42Updated 5 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Create an array without duplicates☆70Updated 3 years ago