Split a string on the first occurrence of a char
npm install split-on-first-occurrence  
``bash`
$ npm install --save split-on-first-occurrence
`js
const split = require('split-on-first-occurrence')
split('Author: EGOIST COOL', ' ')
//=> ['Author:', 'EGOIST COOL']
// split by a string
split('Hello\n\nWorld\n\n!', '\n\n')
//=> ['Hello', 'World\n\n!']
`
#### input
Type: string
The string to split.
#### char
Type: string
The seperator char or chars.
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D