Socket
Book a DemoInstallSign in
Socket

email-concealer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-concealer

package to conceal the emails in dump files

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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

Installation

npm install email-concealer --save

Usage

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 for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CODE OF CONDUCT for details.

License

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

Happy Coding!!!

FAQs

Package last updated on 01 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.