Package
split-on-first
Split a string on the first occurance of a given separator
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 13.2m
- +75% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 year ago
- v4.0.0
- GitHub stars
- 73
- 14 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 1
Downloads
Last week 2026-09-15 to 2026-09-21
13,181,343 downloads last week, 59,649,283 in the last month. The 12-month change of +75% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 06 in total
- Latest version
- 4.0.0, 20 Aug 20251 year ago
- First published
- 7 Feb 2019
- Last push to GitHub
- 18 Sept 20266 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 1
- Dependents on npm
- 133
Major versions
- v4 first release 4.0.0, 20 Aug 2025
- v3 first release 3.0.0, 15 Apr 2021
- v2 first release 2.0.0, 13 Nov 2019
- v1 first release 1.0.0, 7 Feb 2019
Recent releases
| Version | Published |
|---|---|
| 4.0.0 | 20 Aug 2025 |
| 3.0.0 | 15 Apr 2021 |
| 2.0.1 | 22 Nov 2020 |
| 2.0.0 | 13 Nov 2019 |
| 1.1.0 | 23 Apr 2019 |
| 1.0.0 | 7 Feb 2019 |
- Module format
- ESM onlyFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=20
- Runtimes
- -
- Unpacked size (npm)
- 4.5 kB
- Dependencies (0)
- None
npm install split-on-firstCDN
jsDelivr: 2.1m requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/split-on-first@4.0.0/ - unpkg
https://unpkg.com/split-on-first@4.0.0/ - esm.sh
https://esm.sh/split-on-first@4.0.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| split-string | 11.6m | - | 7 years ago | CommonJS | - |
Indexability: Indexed.