sindresorhus / trim-repeatedLinks
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
☆20Updated 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 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Updated 3 years ago
- Check if something is a generator function☆23Updated 3 years ago
- Convert a Source Map object to a comment☆16Updated 4 years ago
- Alphabetically sort an array of strings☆40Updated 4 years ago
- Strip the final newline character from a string/buffer☆37Updated last year
- Clone and modify a RegExp instance☆24Updated 3 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Get the version of a binary in semver format☆42Updated last year
- Get a Gravatar image from an identifier, such as an email☆41Updated 4 years ago
- Lowercase the keys of an object☆40Updated 2 years ago
- List of prototype properties for JavaScript types☆27Updated last year
- Strip the authentication part of a URL☆20Updated 3 years ago
- Modify the values of an object☆28Updated 4 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Check if a value is a Blob☆23Updated 2 years ago
- Split a string at one or more indices☆25Updated 4 years ago
- Get the avatar of a GitHub user☆21Updated 4 years ago
- Convert a time string to seconds: '0017' → 1337☆35Updated 4 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆56Updated 3 years ago
- Get the URL from a web shortcut file☆14Updated 4 years ago
- Get a random property from an object☆14Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the user's default shell☆41Updated 2 months ago
- Create a MD5 hash with hex encoding☆46Updated 2 years ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆46Updated last year
- Check if a file path is a compressed file☆19Updated last year
- Modify the filename in a path☆17Updated 3 years ago
- Regular expression for matching a shebang line☆48Updated 4 years ago