sindresorhus / clone-regexp
Clone and modify a RegExp instance
☆23Updated 2 years ago
Related projects ⓘ
Alternatives and complementary repositories for clone-regexp
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Check if something is a generator function☆23Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Ensure a path doesn't contain null bytes☆12Updated 2 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆13Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- ES2015 Number.isFinite() ponyfill☆19Updated 3 years ago
- Check if a number is a redirect HTTP status code☆23Updated 3 years ago
- Track the list of currently unhandled promise rejections☆24Updated 5 years ago
- Get the system default UID☆11Updated last year
- Check if a path is the current working directory☆19Updated 3 years ago
- Create a Vinyl file from an actual file☆41Updated last year
- Repeat a string - fast☆34Updated 3 years ago
- Sort an array of numbers☆16Updated 3 years ago
- Strip the final newline character from a string/buffer☆33Updated last week
- Modern Buffer API polyfill without footguns☆26Updated 3 years ago
- ES2015 Number.isNaN() ponyfill☆28Updated 6 months ago
- Simple `setImmediate` shim☆28Updated 7 months ago
- Check if a string is a scoped npm package name☆24Updated 2 years ago
- Split a string at one or more indices☆23Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Wait for a specified number of promises to be fulfilled☆36Updated last year
- Lowercase the keys of an object☆40Updated last year
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated 3 months ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆22Updated 2 years ago
- Give me a string and I'll tell you if it's a valid npm package license string☆24Updated 3 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Check if a protocol requires a certain port number to be added to an URL.☆11Updated last year