sindresorhus / has-flagLinks
Check if argv has a specific flag
☆96Updated 4 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☆71Updated 2 years ago
- Check if your code is running as an npm or yarn script☆65Updated 4 months ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Slice a string with ANSI escape codes☆50Updated 4 months ago
- Lazy number range generator☆83Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Get the first path that exists on disk of multiple paths☆62Updated 4 months ago
- Import a module like with `require()` but from a given path☆86Updated 3 years ago
- Copy a file☆122Updated 5 months ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- A better `Promise.race()`☆51Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆41Updated 4 years ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Get the path of the parent module☆79Updated 4 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated 4 months ago
- Indent each line in a string☆115Updated 3 years ago
- Regular expression for matching issue references☆49Updated last year
- Check if a value is a plain object☆103Updated last year
- Wordwrap a string with ANSI escape codes☆130Updated 4 months ago
- Get metadata on the default editor or a specific editor☆55Updated 4 months ago
- Trim newlines from the start and/or end of a string☆49Updated 2 years ago
- Conditional promise chains☆63Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆62Updated 10 months ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Updated 4 months ago
- Get a random temporary file path☆81Updated 2 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Get your PATH prepended with locally installed binaries☆107Updated last year