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
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Check if your code is running as an npm or yarn script☆66Updated 5 months ago
- Get the first path that exists on disk of multiple paths☆62Updated 4 months ago
- Check if a path is a file, directory, or symlink☆80Updated last week
- Get the path of the parent module☆79Updated 4 months ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Copy a file☆123Updated 6 months ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Get your PATH prepended with locally installed binaries☆107Updated last year
- Lazy number range generator☆83Updated 2 years ago
- Slice a string with ANSI escape codes☆50Updated 5 months ago
- Indent each line in a string☆115Updated 3 years ago
- Get the directory of globally installed packages and binaries☆77Updated last week
- Wordwrap a string with ANSI escape codes☆131Updated 5 months ago
- Create an array with values that are present in the first input array but not additional ones☆40Updated 4 years ago
- A better `Promise.race()`☆51Updated 3 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Import a module like with `require()` but from a given path☆86Updated 3 years ago
- Randomize the order of items in an array☆111Updated last week
- Filter object keys and values into a new object☆105Updated last year
- Check if something is a Node.js stream☆115Updated last year
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Check if a string is a valid filename☆62Updated 4 years ago
- Get the fullname of the current user☆48Updated 2 years ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- Truncate a string to a specific width in the terminal☆88Updated 3 months ago
- Check if a string matches the name of a Node.js builtin module☆63Updated 11 months ago
- Map of nouns to their irregular plural form☆91Updated 3 months ago
- Mimic a Node.js HTTP response stream☆61Updated 2 years ago