sindresorhus / split-at
Split a string at one or more indices
☆23Updated 3 years ago
Related projects: ⓘ
- Exclude certain items from an array☆20Updated 3 years ago
- Get the avatar of a GitHub user☆21Updated 2 years ago
- Check if a value is a function☆27Updated 3 years ago
- Check if a string is a scoped npm package name☆24Updated 2 years ago
- Get an array of parent directories including itself☆27Updated 10 months ago
- Modify the values of an object☆28Updated 3 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆22Updated 2 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆13Updated 3 years ago
- Include only certain items in an array☆16Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- List of prototype properties for JavaScript types☆24Updated 4 months ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆19Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated 10 months ago
- Alphabetically sort an array of strings☆39Updated 3 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Updated 3 years ago
- Check if a file path is a compressed file☆16Updated 4 months ago
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Add AVA to your project☆15Updated 3 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Sort an array of numbers☆16Updated 3 years ago
- Create an array with values that are present in the first input array but not additional ones☆37Updated 3 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Get your Mac model☆15Updated 8 years ago
- Get the number of days in a year☆23Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- utility to create a pretty report for a vfile☆19Updated last year
- Turn an object into a string of HTML attributes☆49Updated last year
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆45Updated 5 months ago
- Create a revved file path☆20Updated 2 years ago