nodejs common tools collection
npm i common-tools --save
var stringTools = require("common-tools").stringTools;
var validateTools = require("common-tools").validateTools;
console.log(stringTools.randomString(10));
console.log(stringTools.genPassword("mypassword"));
console.log(validateTools.isEmail("abc"));
randomString: function (howMany, chars)
captach: function ()
uuidNoSlash: function (noSlash)
genPassword: function (password)
jsonEncodeBase64: function (data)
jsonDecodeBase64: function (data)
sha256: function (data, salt)
htmlEncode: function(myString)
isEmail: function (email)
isChinaMobile: function (mobile)
isIpV4: function(ip)
http client for yield invoke
get: function (url, data)
post: function (url, data)