sindresorhus / has-flagLinks
Check if argv has a specific flag
☆93Updated 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☆70Updated last year
- Lazy number range generator☆81Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if a path is a file, directory, or symlink☆78Updated last year
- Check if your code is running as an npm or yarn script☆65Updated last week
- Get the first path that exists on disk of multiple paths☆59Updated this week
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Regular expression for matching issue references☆49Updated 11 months ago
- A better `Promise.race()`☆46Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆128Updated last week
- Check when the DOM has loaded like `DOMContentLoaded`☆110Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last week
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated last week
- Get the path of the parent module☆78Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Conditional promise chains☆62Updated 4 years ago
- Get your PATH prepended with locally installed binaries☆105Updated 10 months ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- Slice a string with ANSI escape codes☆50Updated last week
- Create a lazily evaluated value☆69Updated 4 years ago
- Boxes for use in the terminal☆102Updated last year
- Copy a file☆121Updated last month
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Check if a string matches the name of a Node.js builtin module☆61Updated 6 months ago
- Randomize the order of items in an array☆106Updated 3 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 4 years ago