{"size": 871, "ext": "js", "max_stars_repo_path": "dist/munge.js", "max_stars_repo_name": "binarykitchen/munge", "max_stars_repo_stars_event_min_datetime": "2015-08-18T17:03:28.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-08T23:49:49.000Z", "max_issues_repo_path": "dist/munge.js", "max_issues_repo_name": "binarykitchen/munge", "max_issues_repo_issues_event_min_datetime": "2020-10-20T09:51:00.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-20T09:51:36.000Z", "max_forks_repo_path": "dist/munge.js", "max_forks_repo_name": "binarykitchen/munge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 290.3333333333, "max_line_length": 836, "alphanum_fraction": 0.7014925373}
var n={TYPES:["ascii","utf8","random"],DEFAULT:"random",ascii:{alreadyMunged:function(n){if(n.startsWith("&#"))return n},munge:function(n){return n&&n.charCodeAt()}},utf8:{alreadyMunged:function(n){if(n.startsWith("&#x"))return n},munge:function(r){for(var e=n.ascii.munge(r).toString(16).toUpperCase();e.length<4;)e="0"+e;return"x"+e}},random:{alreadyMunged:function(r){return n.ascii.alreadyMunged(r)||n.utf8.alreadyMunged(r)},munge:function(r){var e=n.TYPES[Math.floor(Math.random()*n.TYPES.length)];return n[e].munge(r)}}};module.exports=function(r,e){var i,t,a=[];if((e=e||{}).encoding){if(n.TYPES.indexOf(e.encoding)<0)throw Error("Invalid encoding option given: "+e.encoding)}else e.encoding=n.DEFAULT;var o=n[e.encoding];if(r){if(o.alreadyMunged(r))return r;for(t in i=r.split(""))a[t]="&#"+o.munge(i[t])+";"}return a.join("")};
//# sourceMappingURL=munge.js.map
