Get the number of occurrences of a string in a string
npm install string-occurrence> Get the number of occurrences of a string in a string
```
$ npm install --save string-occurrence
`js
const stringOccurrence = require('string-occurrence');
stringOccurrence('foo bar', 'foo');
//=> 1
stringOccurrence('foo bar\nfoo baz', 'foo');
//=> 2
stringOccurrence('foo bar\nfoo baz', ['foo', 'baz']);
//=> 3
`
#### input
Type: string
The string to search in.
#### search
Type: string, string[]
The keyword or keywords to search for.
#### options
##### caseInsensitive
Type: boolean true`
Default:
Perform a case insensitive match.
MIT © Sam Verschueren