Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "munge", | ||
"version": "0.1.0", | ||
"description": "a tiny node module to munge any strings. useful if wou want to obfuscate email addresses to valid, numeric html entities.", | ||
"version": "0.1.1", | ||
"description": "a tiny node module to munge any strings. useful if you want to obfuscate email addresses to valid, numeric html entities.", | ||
"main": "munge.js", | ||
@@ -6,0 +6,0 @@ "author": "Michael Heuberger <michael.heuberger@binarykitchen.com> (http://binarykitchen.com)", |
@@ -7,3 +7,3 @@ # munge | ||
## simple example | ||
## basic example | ||
@@ -17,3 +17,2 @@ by default, munge() encodes each letter by random - either ascii or unicode - to make it more difficult for spammers. | ||
var munge = require('munge'); | ||
console.log(munge('spacemonkey@moon.com')); | ||
@@ -33,11 +32,10 @@ ``` | ||
### ascii encoding only | ||
### ascii | ||
``` js | ||
var munge = require('munge'); | ||
console.log(munge('spacemonkey@moon.com', {encoding: 'ascii'})); | ||
``` | ||
should output the string with ascii encodings like that: | ||
should encode the string with ascii like that: | ||
``` | ||
@@ -47,11 +45,10 @@ spacemonkey@moon.com | ||
### utf8 encoding only | ||
### utf8 | ||
``` js | ||
var munge = require('munge'); | ||
console.log(munge('spacemonkey@moon.com', {encoding: 'utf8'})); | ||
``` | ||
outputs the same blurb but in unicode: | ||
encodes the same blurb but in unicode: | ||
``` | ||
@@ -61,3 +58,3 @@ spacemonkey@moon.com | ||
## jade integration | ||
### jade integration | ||
@@ -73,5 +70,5 @@ good idea. you will want to protect your email address on your contact page. | ||
res.render('contact', | ||
{ | ||
emailContact: munge('spacemonkey@moon.com') | ||
} | ||
{ | ||
emailContact: munge('spacemonkey@moon.com') | ||
} | ||
); | ||
@@ -78,0 +75,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44771
91