string-split-keep

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    99
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    99
  • 1.0.0
    0

Package Sidebar

Install

npm i string-split-keep

Weekly Downloads

58

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mihop