1.0.4 • Published 7 years ago

email-encoder v1.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

email-encoder Build Status Greenkeeper badge

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 my-email@example.com');
//=> '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 my-email@example.com'
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 hello@example.com"
    // -> My e-mail is hello@example.com

License

MIT © DecentM