split-on-first
npmv4.0.0TypeScriptSplit a string on the first occurance of a given separator
Overview
split-on-first is an npm package that split a string on the first occurance of a given separator. It is extremely widely used, with about 15.8M downloads per week and 1 known dependents in the graph. The latest version is 4.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need split a string on the first occurance of a given separator and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (15.8M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of split-on-first.
Dependencies
Dev (3)
Used by
Popular packages that depend on split-on-first.
Alternatives to split-on-first
Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
Measure the difference between two strings using the Levenshtein distance algorithm
Determine the East Asian Width of a Unicode character
Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow
Convert a string index to its line and column position
Strip UTF-8 byte order mark (BOM) from a string
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
Escape RegExp special characters
Run a function exactly one time
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Strip redundant indentation and indent the string
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 4.0.0latest | 11 months ago | MIT |
| 3.0.0 | 5 years ago | MIT |
| 2.0.1 | 5 years ago | MIT |
| 2.0.0 | 6 years ago | MIT |
| 1.1.0 | 7 years ago | MIT |
| 1.0.0 | 7 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install split-on-first?
Run `npm install split-on-first` to add split-on-first to your npm project.
What license is split-on-first released under?
split-on-first is distributed under the MIT license.
How popular is split-on-first?
split-on-first has approximately 15,828,173 downloads per week and 1 known dependent packages.