Socket
Socket
Sign inDemoInstall

posthtml-obfuscate

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "posthtml-obfuscate",
"version": "0.1.1",
"version": "0.1.2",
"description": "PostHTML plugin that'll obfuscate emails etc...",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -1,2 +0,2 @@

# PostHTML
# PostHTML Obfuscate

@@ -12,3 +12,16 @@ [![NPM version](https://img.shields.io/npm/v/posthtml-obfuscate.svg?style=flat-square)](https://www.npmjs.com/package/posthtml-obfuscate)

## Usage
### Output
```html
<!-- Before -->
<a href="mailto:sam@smith.com">
sam@smith.com
</a>
<!-- After -->
<a href="mailto:&#115;&#97;&#109;&#64;&#115;&#109;&#105;&#116;&#104;&#46;&#99;&#111;&#109;">
&#115;&#97;&#109;&#64;&#115;&#109;&#105;&#116;&#104;&#46;&#99;&#111;&#109;
</a>
```
### Usage
```js

@@ -29,17 +42,3 @@ const posthtml = require('posthtml');

### Output
```html
<!-- Before -->
<a href="mailto:sam@smith.com">
sam@smith.com
</a>
<!-- After -->
<a href="mailto:&#115;&#97;&#109;&#64;&#115;&#109;&#105;&#116;&#104;&#46;&#99;&#111;&#109;">
&#115;&#97;&#109;&#64;&#115;&#109;&#105;&#116;&#104;&#46;&#99;&#111;&#109;
</a>
```
### Options
- includeMailto: Boolean - Includes the `mailto:` prefix in the obfuscation. (Default: false)
- `includeMailto`: Boolean - Includes the `mailto:` prefix in the obfuscation. (Default: false)
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