modules

ac-bundle-module-utils-key

utils/key.js

A module for ac-bundle-app, published by ac-bundle-module.

Available Methods: length, count, token, make

length

20
count

4
token

function() {
  var str = "";
  for (var i=0; i<=mod.count-1; i++) {
    if (str !== "") str += "-";
    str += mod.make(mod.length);
  }
  return str;
}

make

function(length) {
  var result = "";
  var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  var charactersLength = characters.length;
  for (var i = 0; i  return result;
}

Happy Coding!

Leave a Reply

Your email address will not be published. Required fields are marked *