sindresorhus / is-regexpView external linksLinks
Check if a value is a regular expression
☆26Oct 31, 2021Updated 4 years ago
Alternatives and similar repositories for is-regexp
Users that are interested in is-regexp are comparing it to the libraries listed below
Sorting:
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Open the URL from a web shortcut file in the browser☆20Nov 3, 2021Updated 4 years ago
- Open the URL from a web shortcut file☆17Nov 3, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Simple `setImmediate` shim☆29Sep 13, 2025Updated 5 months ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 3 weeks ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 5 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated 2 weeks ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆37Aug 9, 2021Updated 4 years ago
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Strip a path from a path☆18Aug 18, 2021Updated 4 years ago
- Turn an array like into an array☆12Mar 14, 2021Updated 4 years ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Check if your code is running as an npm or yarn script☆66Sep 10, 2025Updated 5 months ago
- Loop over each item in an array and call the given function on every element.☆14Feb 27, 2017Updated 8 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- A safer `.hasOwnProperty()`☆29Jun 21, 2023Updated 2 years ago
- Check if a string is email like☆25Nov 11, 2025Updated 3 months ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Check if something is a promise☆45Apr 16, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 5 months ago