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:
- Check if your package was installed globally☆70Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Get the path of the parent module☆77Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Check if a string is a valid filename☆62Updated 3 years ago
- Check if a file path is a binary file☆46Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 4 months ago
- Lazy number range generator☆81Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Slice a string with ANSI escape codes☆49Updated last year
- Get the fullname of the current user☆47Updated last year
- Wordwrap a string with ANSI escape codes☆126Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 11 months ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get metadata on the default editor or a specific editor☆53Updated 2 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Create an array without duplicates☆71Updated 4 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Get your PATH prepended with locally installed binaries☆105Updated 8 months ago
- Decompress a HTTP response if needed☆72Updated last year
- Get the real path of the system temp directory☆82Updated 2 years ago
- Randomize the order of items in an array☆105Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if stdout or stderr is interactive☆117Updated last year