Skip to content

mayankbucha/counting-str

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counting STR (Counting String)

npm GitHub repo size GitHub Build status npm

Working Status

🚧 Under Construction 🚧

Installation

npm i counting-str

Usage

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

Feel free to open a pull request to add more features.

  • make clone
  • create a pull request
  • feel free to open an issue

About

Module for counting strings, characters length

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.3%
  • TypeScript 27.7%
  • Makefile 3.0%