index.js
function getCharacterSets(options) {
    var regen;
    var include = options.include;
    var sets = [];

    for (var i in include) {
      regen = regenerate();

      for (var j in include[i].chars) {
        // There should always be a 0th-index element
        if (include[i].chars[j][0] === undefined) {
          continue;
        }

        // Add the characters from the set
        regen = addCharacters(regen, include[i].chars[j]);
      }

      // Remove the characters from the exclusion set
      regen = removeCharacters(regen, options.exclude);

      sets.push(
        {
          set: regen.valueOf(),
          min: include[i].min
        }
      );
    }

    return sets;
  }
function getCharacterSets(options) {
    var regen;
    var include = options.include;
    var sets = [];

    for (var i in include) {
      regen = regenerate();

      for (var j in include[i].chars) {
        // There should always be a 0th-index element
        if (include[i].chars[j][0] === undefined) {
          continue;
        }

        // Add the characters from the set
        regen = addCharacters(regen, include[i].chars[j]);
      }

      // Remove the characters from the exclusion set
      regen = removeCharacters(regen, options.exclude);

      sets.push(
        {
          set: regen.valueOf(),
          min: include[i].min
        }
      );
    }

    return sets;
  }
function getCharacterSets ( options ) { var regen ; var include = options . include ; var sets = [ ] ; for ( var i in include ) { regen = regenerate ( ) ; for ( var j in include [ i ] . chars ) { // There should always be a 0th-index element if ( include [ i ] . chars [ j ] [ 0 ] === undefined ) { continue ; } // Add the characters from the set regen = addCharacters ( regen , include [ i ] . chars [ j ] ) ; } // Remove the characters from the exclusion set regen = removeCharacters ( regen , options . exclude ) ; sets . push ( { set : regen . valueOf ( ) , min : include [ i ] . min } ) ; } return sets ; }
Retrieves a complete list of all character sets from the given options

@param {Object} options An Object containing:
- include (optional) - An Object containing an Array of Objects, each of which contain:
- chars - An Array containing an Array of 1 character per index:
- 0 - A single character, hex character, or unicode character.
This may be a single character to include, or the beginning of a
range of characters to include
- 1 - A single character, hex character, or unicode character.
This must be the end of the range of the characters to include.
- min (optional) - An Integer representing the minimum number of
characters from the 'chars' set that *must* be included in the generated
string
- exclude (optional) - An Object containing an Array of Objects, each of which contain:
- chars - An Array containing an Array of 1 character per index:
- 0 - A single character, hex character, or unicode character.
This may be a single character to exclude, or the beginning of a
range of characters to exclude
- 1 - A single character, hex character, or unicode character.
This must be the end of the range of the characters to exclude.
@returns {Array} An Array of Objects, each of which include:
- set - An Array of decimal characters
- min - An Integer representing the minimum number of characters from the
set that must be included in the generated string
Retrieves a complete list of all character sets from the given options