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"]

/string-split-keep2/

    Package Sidebar

    Install

    npm i string-split-keep2

    Weekly Downloads

    437

    Version

    1.0.12

    License

    MIT

    Unpacked Size

    38.6 kB

    Total Files

    18

    Last publish

    Collaborators

    • bluelovers