🚧 Under Construction 🚧
npm i counting-str
Count Words
const { countWords } = require('counting-str');
countWords("Hello World");
Count Characters
const { countCharacters } require('counting-str');
countCharacters("Hello World");
Count Characters without including spaces
countCharacters("Hello World", { withSpaces: false });
Name | Arguments | Info |
---|---|---|
countWords | String | returns # of words in a string |
countSpaces | String | returns # of spaces in a string |
countCharacters | Object { withSpaces: boolean } | withSpaces: true returns # of characters included space |
- make clone
- create a pull request
- feel free to open an issue