sindresorhus / condense-whitespace
Remove leading, trailing and repeated whitespace from a string
☆39Updated 3 years ago
Alternatives and similar repositories for condense-whitespace:
Users that are interested in condense-whitespace are comparing it to the libraries listed below
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated last year
- Display a notification (macOS 10.9+)☆87Updated 3 years ago
- Get all emails in a text file or stdin☆24Updated 3 years ago
- Find the root directory of a Node.js project or npm package☆25Updated last year
- Get user info from a GitHub username☆22Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Get the path to this package - Useful for testing☆21Updated 3 years ago
- Display an error in a GUI dialog☆22Updated 3 years ago
- Mimic a Node.js HTTP response stream☆59Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Conditional promise chains☆60Updated 4 years ago
- Check if a value is a function☆27Updated 3 years ago
- Get user info of an npm user☆31Updated last year
- Add AVA to your project☆15Updated 4 years ago
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆36Updated last year
- Get the version of a binary in semver format☆35Updated last year
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Parse and stringify file paths with line and column like `unicorn.js14`☆21Updated 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
- Truncate a URL to a specific length☆61Updated 4 years ago
- Simplified high resolution timing☆80Updated 7 months ago
- Check if you're running in Hyper☆24Updated 11 months ago
- Modify the values of an object☆27Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Get a Gravatar image from an identifier, such as an email☆41Updated 3 years ago
- Split a string at one or more indices☆23Updated 3 years ago
- Check if your code is running in a JXA environment☆31Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago