# email-encoder

> Helps protect e-mail addresses from spambots

Latest version **1.0.4** (published 2017-08-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install email-encoder
pnpm add email-encoder
yarn add email-encoder
bun add email-encoder
```

Provides the command `email-encoder`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-08-16 |
| First published | 2017-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DecentM |
| Maintainers | decentm |
| Keywords | cli-app, cli, email, html, spam, security, encode, entity, entities |

## Links

- npm: https://www.npmjs.com/package/email-encoder
- Repository: https://github.com/decentm/email-encoder
- Homepage: https://github.com/decentm/email-encoder#readme
- Issues: https://github.com/decentm/email-encoder/issues
- npm.io page: https://npm.io/package/email-encoder

## Dependencies (3)

- [he](https://npm.io/package/he.md) ^1.1.1
- [meow](https://npm.io/package/meow.md) ^3.7.0
- [emails-in-string](https://npm.io/package/emails-in-string.md) ^2.0.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-08-16
- 1.0.3 — 2017-08-16
- 1.0.2 — 2017-06-18
- 1.0.1 — 2017-06-08
- 1.0.0 — 2017-06-08
- 0.0.0 — 2017-06-08

## README

# email-encoder [![Build Status](https://travis-ci.org/DecentM/email-encoder.svg?branch=master)](https://travis-ci.org/DecentM/email-encoder) [![Greenkeeper badge](https://badges.greenkeeper.io/DecentM/email-encoder.svg)](https://greenkeeper.io/)

> A module and cli that encodes email addresses in a string into HTML entities


## Install

```
$ npm install email-encoder
```


## Usage

```js
const emailEncoder = require('email-encoder');

emailEncoder('My email is my-email@example.com');
//=> 'My email is &#x6D;&#x79;&#x2D;&#x65;&#x6D;&#x61;&#x69;&#x6C;&#x40;&#x65;&#x78;&#x61;&#x6D;&#x70;&#x6C;&#x65;&#x2E;&#x63;&#x6F;&#x6D;'
```


## 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 &#x6D;&#x79;&#x2D;&#x65;&#x6D;&#x61;&#x69;&#x6C;&#x40;&#x65;&#x78;&#x61;&#x6D;&#x70;&#x6C;&#x65;&#x2E;&#x63;&#x6F;&#x6D;
```

```
$ 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 &#x68;&#x65;&#x6C;&#x6C;&#x6F;&#x40;&#x65;&#x78;&#x61;&#x6D;&#x70;&#x6C;&#x65;&#x2E;&#x63;&#x6F;&#x6D;
```


## License

MIT © [DecentM](http://decentm.com)

---
_Source: https://npm.io/package/email-encoder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
