sindresorhus / clone-regexpView external linksLinks
Clone and modify a RegExp instance
☆24Jul 8, 2022Updated 3 years ago
Alternatives and similar repositories for clone-regexp
Users that are interested in clone-regexp are comparing it to the libraries listed below
Sorting:
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari☆13Nov 14, 2025Updated 3 months ago
- Create a noop process and get the PID☆14Aug 10, 2021Updated 4 years ago
- Check if something is a generator function☆24Jul 8, 2022Updated 3 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Get a random property from an object☆15Jul 2, 2024Updated last year
- Check if a URL is relative☆26Sep 10, 2025Updated 5 months ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Simple `setImmediate` shim☆29Sep 13, 2025Updated 5 months ago
- Get the name of a named function☆34Apr 7, 2021Updated 4 years ago
- Check if a Buffer/Uint8Array is a WebP image☆21Sep 18, 2021Updated 4 years ago
- Get the passwd user entry from a username or uid☆30Jul 9, 2022Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Check if a file path is a text file☆21Apr 30, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Modern version of duplexer2☆16Oct 27, 2022Updated 3 years ago
- Create a MD5 hash with hex encoding☆48Nov 6, 2023Updated 2 years ago
- Pretty UTC datetime: `2014-01-09 0601`☆32Jul 8, 2022Updated 3 years ago
- Prefix CSS using Autoprefixer☆34May 1, 2024Updated last year
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Parse and stringify file paths with line and column like `unicorn.js14`☆24Nov 22, 2025Updated 2 months ago
- Split a string at one or more indices☆25May 3, 2021Updated 4 years 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
- Recursively create nested directories with jsftp, like mkdirp☆22Aug 9, 2021Updated 4 years ago
- Detect the dominant newline character of a string☆56Sep 23, 2023Updated 2 years ago
- Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)☆56Jun 4, 2024Updated last year
- Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆28Aug 9, 2021Updated 4 years ago