hsimp-character-sets

Checks if a string contains specified character sets

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
hsimp-character-sets
000.2.07 years ago8 years agoMinified + gzip package size for hsimp-character-sets in KB

Readme

How Secure Is My Password

Character Sets

var characterSets = require("character-sets");

console.log(characterSets("abc").getSets()); // ["ASCII Lowercase"]
console.log(characterSets("abc").getPossibleCharacters()); // 26
console.log(characterSets("aB1").getSets()); // ["ASCII Lowercase", "ASCII Uppercase", "ASCII Numbers"]
console.log(characterSets("aB1").getPossibleCharacters()); // 62