0.0.5 • Published 9 years ago

string-stats v0.0.5

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

Build status Bower version NPM version

stringStats

Utilities for calculating statistics about strings

stringStats.containsAlphanumericCharacterRegex

Regex matching at least one "alphanumeric" character.

Includes extended Latin, Greek, Coptic, Cyrillic, Armenian, Hebrew, Syriac, Arabic.

stringStats.containsAlphanumericCharacter(s:String)

Return true if string parameter contains at least one "alphanumeric" character.

stringStats.wordCount(s:String)

Return the number of visible words in a string.

Words contain at least one alphanumeric character.

stringStats.characterCount(s:String)

Return the number of visible characters in a string

Development

Generate documentation

$ npm install -g dox
$ ./generate-docs > README.md

Deploy

bower

Where X.Y.Z is the new version number:

$ git tag -a vX.Y.Z
$ git push --tags

npm

  • Bump version in package.json
  • $ npm publish