string-stats
v0.0.5
Published
Utilities for calculating statistics about strings
Downloads
2
Maintainers
Readme
- stringStats
- stringStats.containsAlphanumericCharacterRegex
- stringStats.containsAlphanumericCharacter()
- stringStats.wordCount()
- stringStats.characterCount()
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