Socket
Socket
Sign inDemoInstall

obfuscate-mail

Package Overview
Dependencies
0
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.4 to 1.4.5

2

package.json
{
"name": "obfuscate-mail",
"version": "1.4.4",
"version": "1.4.5",
"description": "Obfuscate email",

@@ -5,0 +5,0 @@ "main": "obfuscateEmail.js",

@@ -15,2 +15,3 @@ # obfuscate mail

```
```sh

@@ -22,14 +23,21 @@ yarn add obfuscate-mail

const obfuscate = require('obfuscate-mail');
obfuscate('example@example.com');
// => exa******@***.com
```
```js
import obfuscate from 'obfuscate-mail';
```
obfuscate('example@example.com');
// => exa******@***.com
```js
obfuscate('example.example@example.com', {
// asterisksLength: 6,
// minimumNameObfuscationLength: 4,
// visibleCharactersStartLength: 3,
// visibleCharactersMiddleLength: 2,
// visibleCharactersEndLength: 2,
// showDomainName: false,
// showDomainExtension: true,
// invalidEmailValue: '*********@****.**',
});
```
> `=> exa***.e***le@***.com`

@@ -36,0 +44,0 @@ ## Options

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc