email-encoder
v1.0.4
Published
Helps protect e-mail addresses from spambots
Downloads
16
Maintainers
Readme
email-encoder
A module and cli that encodes email addresses in a string into HTML entities
Install
$ npm install email-encoder
Usage
const emailEncoder = require('email-encoder');
emailEncoder('My email is [email protected]');
//=> 'My email is my-email@example.com'
API
emailEncoder(input)
input
Type: string
Command line usage
$ npm install --global email-encoder
$ email-encoder 'My email is [email protected]'
My email is my-email@example.com
$ email-encoder --help
Usage
email-encoder [input]
Examples
$ email-encoder "Hello, world!"
// -> "Hello, world!"
$ email-encoder "My e-mail is [email protected]"
// -> My e-mail is hello@example.com
License
MIT © DecentM