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
- Detect the dominant newline character of a string☆55Updated last year
- Slice a string with ANSI escape codes☆50Updated last year
- Check if your code is running as an npm or yarn script☆65Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated last year
- Copy a file☆121Updated 2 weeks ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 6 months ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Wordwrap a string with ANSI escape codes☆128Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Create an array without duplicates☆71Updated 4 years ago
- Indent each line in a string☆113Updated 3 years ago
- Lazy number range generator☆81Updated last year
- Get the path of the parent module☆77Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Filter object keys and values into a new object☆103Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Create a lazily evaluated value☆69Updated 4 years ago
- Get metadata on the default editor or a specific editor☆53Updated 2 years ago
- Replace all substring matches in a string☆88Updated 4 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆63Updated 4 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year
- Get your PATH prepended with locally installed binaries☆105Updated 10 months ago
- Check if a value is an object☆40Updated 4 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 3 years ago