# email-concealer

> package to conceal the emails in dump files

Latest version **1.0.3** (published 2020-12-01) · MIT license · 0 weekly downloads

## Install

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

Provides the command `email-concealer`.

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-12-01 |
| First published | 2020-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shashi Prakash Gautam |
| Maintainers | shweshi |

## Links

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

## Dependencies (1)

- [yargs](https://npm.io/package/yargs.md) ^16.1.1

## Recent versions

- 1.0.3 (latest) — 2020-12-01
- 1.0.2 — 2020-06-17
- 1.0.1 — 2020-06-11

## README

# Email-Concealer

This package conceals the email in a string with example.org, this can be used to conceal the emails in sql dumps.

Inspired by: https://github.com/spatie/email-concealer

It removes the domain and append the local part with example.org. Concealer can idenfity if there are more than one same local part than it will increment the count and append it.

[![NPM](https://nodei.co/npm/email-concealer.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/email-concealer)

# Installation
```bash
npm install email-concealer --save
```

# Usage
```json
let string = 'hi alex@gmail.com';

const concealer = new Concealer();

concealer.conceal(string);
// hi alex@example.org


string = 'hi alex@gmail.com and alex@yahoo.in';
concealer.conceal(string);
// hi alex@example.org and alex-1@example.org
```

### Using cli

You can use the email-concealer command line interface (cli)

```
Commands:

email-concealer --help
email-concealer --version
email-concealer conceal --file [filepath] --domain [domain]
```

Example:
```
email-concealer conceal --file ./users.sql --domain example.org
```

### Testing

    npm test

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

### License

The MIT License (MIT). Please see [License File](LICENSE) for more information.

### Happy Coding!!!

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