# obscure-email

> Obfuscates emails in the call of a function.

Latest version **1.0.7** (published 2017-08-17) · MIT license · 0 weekly downloads

## Install

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

## 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.7 |
| Published | 2017-08-17 |
| First published | 2017-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Josh Greenwell |
| Maintainers | joshgreenwell |

## Links

- npm: https://www.npmjs.com/package/obscure-email
- npm.io page: https://npm.io/package/obscure-email

## Recent versions

- 1.0.7 (latest) — 2017-08-17
- 1.0.3 (beta) — 2017-08-15
- 1.0.6 — 2017-08-16
- 1.0.5 — 2017-08-16
- 1.0.4 — 2017-08-15
- 1.0.2 — 2017-08-15
- 1.0.1 — 2017-08-15
- 1.0.0 — 2017-08-15

## README

## Introduction

This is a module that will obfuscate emails. There are four variations as of now, listed below.

Any style not listed below, and that is passed in, will be `null`

## Install

```
npm install --save obscure-email
```

## Examples

```javascript
var obf_email = require('obscure-email');

obf_email('someone@something.com');

obf_email('someone@something.com', 'default');
```

## Styles

styles | description | example output
------ | ----------- | --------------
default | Shows the first 3 letters and stars the rest of the letters till the @ sign | email@foo.com : ema**@foo.com
end3 | Stars the letters until the last 3 before the @ sign | email@foo.com : **ail@foo.com
first3rs | Displays the first 3 letters with a random number of stars after, between 3 and 13 | email@foo.com : ema*\*\*@foo.com -- ema\*************@foo.com
end3rs | Displays a random number of stars first, between 3 and 13, and then the last 3 characters before the @ sign | email@foo.com : *\**ail@foo.com -- \*************ail@foo.com

## Edge Case Examples

styles | edge examples output
------ | --------------------
default | e@foo.com : \*@foo.com -- em@foo.com : e\*@foo.com -- ema@foo.com : em\*@foo.com
end3 | e@foo.com : \*@foo.com -- em@foo.com : \*m@foo.com -- ema@foo.com : \*ma@foo.com
first3rs | e@foo.com : \*\*\*@foo.com -- em@foo.com : e\*\*\*@foo.com -- ema@foo.com : em\*\*\*@foo.com
end3rs | e@foo.com : \*\*\*@foo.com -- em@foo.com : \*\*\*m@foo.com -- ema@foo.com : \*\*\*ma@foo.com

**NOTE:** As above, you can go to 13 stars, 3 was chosen here for simplicity.

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