string-split-keep2
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

string-split-keep

Split strings without applying separator after limit; Negative limit starts from the end. No regex separators.

	var ssplit = require("string-split-keep")  
	  
	ssplit("word1 word2 word3", " ", 2) //["word1", "word2 word3"]  
	ssplit("word1 word2 word3", " ", -2) //["word1 word2", "word3"]

Package Sidebar

Install

npm i string-split-keep2

Weekly Downloads

505

Version

1.0.12

License

MIT

Unpacked Size

38.6 kB

Total Files

18

Last publish

Collaborators

  • bluelovers