sindresorhus / has-flagView external linksLinks
Check if argv has a specific flag
☆96Jul 19, 2021Updated 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 a file path is a binary file☆49Apr 30, 2024Updated last year
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- List of binary file extensions☆89May 4, 2025Updated 9 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 5 months ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 4 years ago
- Check if a path exists☆155Mar 3, 2022Updated 3 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- ☆19Dec 21, 2024Updated last year
- Unpipe a stream from all destinations☆22Dec 15, 2020Updated 5 years ago
- ☆20Sep 24, 2025Updated 4 months ago
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Visit a method over the items in an object, or map visit over the objects in an array. This is an alternative approach to using extend or…☆20Dec 15, 2020Updated 5 years ago
- Copy static properties, prototype properties, and descriptors from one object to another☆15Dec 16, 2020Updated 5 years ago
- Returns true if a string has an extglob☆23May 25, 2019Updated 6 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 5 months ago
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 4 months ago
- Check if an object can be used like an Array☆17Sep 13, 2025Updated 5 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- abstract base class for hash-streams☆11Sep 23, 2025Updated 4 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Call the given method on each value in the given object.☆20Mar 14, 2023Updated 2 years ago
- Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Ex…☆23Feb 27, 2017Updated 8 years ago
- Moved to https://github.com/nodejs/string_decoder☆23Jun 21, 2017Updated 8 years ago
- Check if a file path is a text file☆21Apr 30, 2024Updated last year
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 2 years ago