sindresorhus / has-flagLinks
Check if argv has a specific flag
☆95Updated 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 2 years ago
- Check if your code is running as an npm or yarn script☆65Updated 2 months ago
- Get the path of the parent module☆79Updated 2 months ago
- Get the first path that exists on disk of multiple paths☆62Updated 2 months ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Regular expression for matching issue references☆49Updated last year
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Filter object keys and values into a new object☆105Updated last year
- Check if a path is a file, directory, or symlink☆80Updated last year
- A better `Promise.race()`☆51Updated 2 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Check if a string is a valid filename☆63Updated 4 years ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Create an array without duplicates☆74Updated 4 years ago
- Lazy number range generator☆82Updated last year
- Copy a file☆122Updated 3 months ago
- Indent each line in a string☆114Updated 3 years ago
- Slice a string with ANSI escape codes☆50Updated 3 months ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆130Updated 3 months ago
- Check if something is a Node.js stream☆115Updated last year
- Randomize the order of items in an array☆109Updated 2 months ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Replace all substring matches in a string☆90Updated 4 years ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- Get your PATH prepended with locally installed binaries☆106Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆41Updated 4 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated 3 months ago
- Get metadata on the default editor or a specific editor☆55Updated 2 months ago