sindresorhus / has-flag
Check if argv has a specific flag
☆94Updated 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
- Check if your package was installed globally☆70Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Lazy number range generator☆82Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Ensures a value is a valid error by making it one if not☆78Updated 2 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Stylelint shareable config for XO☆41Updated 7 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a path is a file, directory, or symlink☆77Updated 5 months ago
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 4 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Truncate a string to a specific width in the terminal☆86Updated last year
- Create a lazily evaluated value☆69Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 7 months ago
- Get a random temporary file path☆79Updated last year
- Get the path of the parent module☆77Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Check if a project is using Yarn☆66Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Returns an array filled with the specified input☆42Updated 2 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Extract the actual stack of an error☆66Updated 2 years ago
- List of JavaScript types☆82Updated 8 months ago
- Simple wildcard matching☆34Updated 3 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Node.js releases data☆36Updated last week