sindresorhus / has-flag
Check if argv has a specific flag
☆95Updated 3 years ago
Alternatives and similar repositories for has-flag:
Users that are interested in has-flag are comparing it to the libraries listed below
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Lazy number range generator☆81Updated last year
- Check if your package was installed globally☆70Updated last year
- Get the path of the parent module☆77Updated last year
- Get the directory of globally installed packages and binaries☆75Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Get metadata on the default editor or a specific editor☆53Updated last year
- Import a globally installed module☆58Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Check if stdout or stderr is interactive☆116Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated 6 months ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Check if a file path is a binary file☆44Updated 11 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 8 months ago
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Extract the actual stack of an error☆66Updated 2 years ago
- Rename a function☆46Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Make a function mimic another one☆94Updated 6 months ago