Substr Occurrence
A small, extremely lightweight library that counts the number of occurrences of a substring or single character in a larger string. Created because string-occurrence was too bloated and slow.
Installation
npm install codetheweb/substr-occurrence
Usage
var occurrence = ; console
Output should be 2
.
Tests
npm test