sindresorhus / has-flag
Check if argv has a specific flag
☆94Updated 3 years ago
Related projects ⓘ
Alternatives and complementary repositories for has-flag
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Lazy number range generator☆82Updated 10 months ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Check if a path is a file, directory, or symlink☆75Updated 3 months ago
- A better `Promise.race()`☆46Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a file path is a binary file☆43Updated 6 months ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Get the path of the parent module☆77Updated last year
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Get metadata on the default editor or a specific editor☆53Updated last year
- Import a globally installed module☆57Updated 10 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Turn an object into a string of HTML attributes☆49Updated last year
- Replace all substring matches in a string☆88Updated 3 years ago
- Create a lazily evaluated value☆69Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Copy a file☆121Updated last year
- Ensures a value is a valid error by making it one if not☆78Updated 2 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 2 years ago
- Truncate a string to a specific width in the terminal☆86Updated last year
- Conditional promise chains☆60Updated 3 years ago
- Expands symbolic links and prints the resolved absolute filepath☆25Updated 6 months ago
- Define a lazily evaluated property on an object☆63Updated last year
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Get a random temporary file path☆79Updated last year