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
- Lazy number range generator☆81Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- 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
- Get the path of the parent module☆77Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Turn an object into a string of HTML attributes☆49Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 3 weeks ago
- Randomize the order of items in an array☆105Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Stylelint shareable config for XO☆41Updated 9 months ago
- Import a globally installed module☆58Updated last year
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 7 months ago
- Check if a project is using Yarn☆66Updated 3 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Create a HTML element string☆91Updated 4 months ago
- Regular expression for matching issue references☆49Updated 5 months ago
- Check if a file path is a binary file☆44Updated 10 months ago
- Check if a path is a file, directory, or symlink☆78Updated 7 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated 11 months ago
- Conditional promise chains☆60Updated 3 years ago
- Linkify GitHub issue references☆46Updated 5 months ago