sindresorhus / trim-repeated
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
☆19Updated 2 years ago
Alternatives and similar repositories for trim-repeated:
Users that are interested in trim-repeated are comparing it to the libraries listed below
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Split a string at one or more indices☆23Updated 3 years ago
- Modify the values of an object☆27Updated 3 years ago
- Clone and modify a RegExp instance☆22Updated 2 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆22Updated 2 years ago
- Check if a value is a Blob☆22Updated last year
- utility to create a pretty report for a vfile☆20Updated last year
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆13Updated 4 years ago
- Ensure a path doesn't contain null bytes☆13Updated 2 years ago
- Exclude certain items from an array☆20Updated 3 years ago
- Get the avatar of a GitHub user☆21Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 5 months ago
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Lowercase the keys of an object☆40Updated last year
- Strip the authentication part of a URL☆18Updated 2 years ago
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Check if something is a generator function☆22Updated 2 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Modify the keys of an object☆15Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a number is a redirect HTTP status code☆23Updated 3 years ago
- Include only certain items in an array☆16Updated 3 years ago
- ES2015 Number.isSafeInteger() ponyfill☆18Updated 4 years ago
- Get an array of parent directories including itself☆27Updated last year
- Get the name of a named function☆33Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆19Updated 4 years ago
- Alternative to Lo-Dash template with support for helpers.☆17Updated 5 years ago
- Check if a JavaScript environment has a DOM☆19Updated 3 years ago
- Simple `setImmediate` shim☆28Updated last year