sindresorhus / has-flagLinks
Check if argv has a specific flag
☆94Updated 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☆69Updated last year
- Check if your code is running as an npm or yarn script☆64Updated last month
- Check if a path is a file, directory, or symlink☆79Updated last year
- Slice a string with ANSI escape codes☆50Updated last month
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Get the path of the parent module☆78Updated last month
- Wordwrap a string with ANSI escape codes☆129Updated last month
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Lazy number range generator☆82Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 8 months ago
- Create an array with values that are present in the first input array but not additional ones☆40Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆60Updated last month
- Decompress a HTTP response if needed☆73Updated 2 weeks ago
- Copy a file☆121Updated 2 months ago
- A better `Promise.race()`☆50Updated 2 years ago
- Check if a value is a plain object☆103Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Get the fullname of the current user☆47Updated 2 years ago
- Get your PATH prepended with locally installed binaries☆104Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last month
- Check if a string is a valid filename☆62Updated 4 years ago
- Log the value/error of a promise☆27Updated 4 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Create an array without duplicates☆73Updated 4 years ago
- Replace all substring matches in a string☆89Updated 4 years ago
- Check if stdout or stderr is interactive☆118Updated last year
- Conditional promise chains☆63Updated 4 years ago