character-count
v1.0.1
Published
Count characters in a string
Downloads
1
Maintainers
Readme
character-count
Count characters in a string. Build with nan.
Install
# With npm
npm i character-count
How to use
const characterCount = require('character-count');
characterCount('pizza', 'z') // ~> 2
characterCount('hello world', 'l') // ~> 3
characterCount('foo(bar(baz)', '(') // ~> 2