sindresorhus / has-flag
Check if argv has a specific flag
☆95Updated 3 years ago
Alternatives and similar repositories for has-flag
Users that are interested in has-flag are comparing it to the libraries listed below
Sorting:
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Get the path of the parent module☆77Updated last year
- Lazy number range generator☆81Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Regular expression for matching issue references☆49Updated 7 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Stylelint shareable config for XO☆41Updated this week
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated 8 months ago
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- Check if a file path is a binary file☆44Updated last year
- Create a lazily evaluated value☆69Updated 4 years ago
- Get metadata on the default editor or a specific editor☆53Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Conditional promise chains☆60Updated 4 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if stdout or stderr is interactive☆116Updated last year
- Extract the article title of a HTML document☆54Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Simple wildcard matching☆34Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Toggle the CLI cursor☆108Updated 9 months ago