sindresorhus / trim-repeatedLinks
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
☆19Updated 3 years ago
Alternatives and similar repositories for trim-repeated
Users that are interested in trim-repeated are comparing it to the libraries listed below
Sorting:
- Strip UTF-8 byte order mark (BOM) from a buffer☆20Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 3 years ago
- Check if something is a generator function☆23Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 11 months ago
- Clone and modify a RegExp instance☆23Updated 3 years ago
- Lowercase the keys of an object☆40Updated 2 years ago
- Check if a value is a Blob☆23Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Strip the authentication part of a URL☆19Updated 3 years ago
- Check if a file is executable☆29Updated 7 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆39Updated last year
- Remove leading, trailing and repeated whitespace from a string☆40Updated 4 years ago
- Get the version of a binary in semver format☆41Updated last year
- Get the user's default shell☆40Updated last month
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆62Updated last year
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆56Updated 3 years ago
- Modify the values of an object☆28Updated 4 years ago
- Split a string at one or more indices☆24Updated 4 years ago
- Alphabetically sort an array of strings☆39Updated 4 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 3 years ago
- Returns an array filled with the specified input☆43Updated 3 years ago
- Create a revved file path☆21Updated 3 years ago
- Get a Gravatar image from an identifier, such as an email☆41Updated 4 years ago
- List of prototype properties for JavaScript types☆26Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- ES2015 Number.isNaN() ponyfill☆28Updated last year
- Regular expression for matching a shebang line☆47Updated 4 years ago
- PostCSS plugin to discard overridden keyframes or counter-style.☆16Updated 9 years ago
- Convert a Source Map object to a comment☆15Updated 4 years ago
- Utility method to run function either synchronously or asynchronously using the common `this.async()` style.☆25Updated 2 months ago