1.0.6 • Published 4 years ago

counting-str v1.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Counting STR (Counting String)

npm GitHub repo size GitHub Build status npm

Working Status

:construction: Under Construction :construction:

Installation

npm i counting-str

Usage

Count Words

const { countWords } = require('counting-str');
countWords("Hello World"); // return 2

Count Characters

const { countCharacters } = require('counting-str');
countCharacters("Hello World"); // return 11

Count Characters without including spaces

countCharacters("Hello World", { withSpaces: false }); // return 10

Count Spaces

const { countSpaces } = require('counting-str');
countSpaces("Hello World"); //return 1

Count Vowels

const { countVowels } = require('counting-str');
countVowels("Hello World"); // return 3

Count an occurence of a Character/String in another String

const { countOccurences } = require('counting-str');
countOccurences("Hello World", "l"); // return 3
NameArgumentsInfo
countWordsStringreturns # of words in a string
countSpacesStringreturns # of spaces in a string
countVowelsStringreturns # of vowels in a string
countCharactersObject { withSpaces: boolean }withSpaces: true returns # of characters included space
countOccurences(String, String)returns occurences count in a string

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

  • make clone
  • create a pull request
  • feel free to open an issue
  • OPEN FOR BEGINNERS AND NEW CONTRIBUTORS

How to Contribute ?

GUIDE FOR CONTRIBUTORS

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago