sindresorhus / valid-filename
Check if a string is a valid filename
☆59Updated 3 years ago
Related projects: ⓘ
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Check if argv has a specific flag☆90Updated 3 years ago
- Get the fullname of the current user☆47Updated last year
- Filter object keys and values into a new object☆100Updated 3 months ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Check if a string matches the name of a Node.js builtin module☆58Updated 4 months ago
- Strip the final newline character from a string/buffer☆33Updated 4 months ago
- Trim newlines from the start and/or end of a string☆48Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if your package was installed globally☆70Updated 10 months ago
- Check if a URL is absolute☆77Updated 3 years ago
- List of text file extensions☆50Updated 4 months ago
- A better `Promise.race()`☆45Updated last year
- Returns an array filled with the specified input☆43Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Get the path of the caller module☆64Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated 10 months ago
- Check if your code is running as an npm or yarn script☆64Updated 2 years ago
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆67Updated 3 years ago
- Regular expression for matching issue references☆48Updated last week
- Linkify GitHub issue references☆46Updated 2 weeks ago
- Parse HTTP X-Forwarded-For header☆56Updated 4 months ago
- Mimic a Node.js HTTP response stream☆59Updated 10 months ago
- Extract the article title of a HTML document☆53Updated 2 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆60Updated 5 months ago
- Create an array with values that are present in the first input array but not additional ones☆37Updated 3 years ago
- Iterate over promises serially☆49Updated 2 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆52Updated last year
- Exit the process when the `esc` key is pressed☆57Updated 9 months ago
- Simple wildcard matching☆34Updated 2 years ago