email-encoder

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i email-encoder

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • decentm