munge
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -1,2 +0,2 @@ | ||
!function(n,i){"object"==typeof exports&&"undefined"!=typeof module?i():"function"==typeof define&&define.amd?define(i):i()}(0,function(){var n={TYPES:["ascii","utf8","random"],DEFAULT:"random",ascii:function(n){return n&&n.charCodeAt()},utf8:function(n){for(var i=this.ascii(n).toString(16).toUpperCase();i.length<4;)i="0"+i;return"x"+i},random:function(n){return this[this.TYPES[Math.floor(Math.random()*this.TYPES.length)]](n)}};module.exports=function(i,o){var e,t,r=[];if((o=o||{}).encoding){if(n.TYPES.indexOf(o.encoding)<0)throw Error("Invalid encoding option given: "+o.encoding)}else o.encoding=n.DEFAULT;if(i)for(t in e=i.split(""))r[t]="&#"+n[o.encoding](e[t])+";";return r.join("")}}); | ||
!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){var n={TYPES:["ascii","utf8","random"],DEFAULT:"random",ascii:function(n){return n&&n.charCodeAt()},utf8:function(n){for(var i=this.ascii(n).toString(16).toUpperCase();i.length<4;)i="0"+i;return"x"+i},random:function(n){return this[this.TYPES[Math.floor(Math.random()*this.TYPES.length)]](n)}};module.exports=function(i,o){var t,e,r=[];if((o=o||{}).encoding){if(n.TYPES.indexOf(o.encoding)<0)throw Error("Invalid encoding option given: "+o.encoding)}else o.encoding=n.DEFAULT;if(i)for(e in t=i.split(""))r[e]="&#"+n[o.encoding](t[e])+";";return r.join("")}}); | ||
//# sourceMappingURL=munge.umd.js.map |
{ | ||
"name": "munge", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "a tiny node module to munge any strings. useful if you want to obfuscate email addresses to valid, numeric html entities.", | ||
@@ -20,5 +20,5 @@ "author": { | ||
"devDependencies": { | ||
"microbundle": "0.11.0", | ||
"microbundle": "0.12.3", | ||
"nodeunit": "0.11.3", | ||
"standard": "14.3.1" | ||
"standard": "14.3.4" | ||
}, | ||
@@ -25,0 +25,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22179
14
132