sindresorhus / has-flagLinks
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:
- Lazy number range generator☆81Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Get the path of the parent module☆77Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Check if your package was installed globally☆70Updated last year
- Filter object keys and values into a new object☆101Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated 11 months ago
- A better `Promise.race()`☆46Updated 2 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated 10 months ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Conditional promise chains☆61Updated 4 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆47Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Get all property keys of an object including non-enumerable and inherited ones☆108Updated 3 years ago
- Stylelint shareable config for XO☆41Updated last month
- Get metadata on the default editor or a specific editor☆53Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Check if stdout or stderr is interactive☆116Updated last year
- Clean up regular expressions☆62Updated 10 months ago
- Check if something is a promise☆46Updated 4 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Indent each line in a string☆113Updated 3 years ago
- Slice a string with ANSI escape codes☆47Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year