Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html2json

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2json - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

index.js

2

package.json
{
"name": "html2json",
"version": "0.0.1",
"version": "0.0.2",
"description": "html to json & json to html",

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

@@ -7,11 +7,24 @@ # html2json & json2html

## How to use
### browser
include htmlparser.js & html2json.js scripts:
```html
<script src="http://ejohn.org/files/htmlparser.js"></script>
<script src="lib/html2json.js"></script>
<script src="https://cdn.rawgit.com/blowsie/Pure-JavaScript-HTML5-Parser/master/htmlparser.js"></script>
<script src="src/html2json.js"></script>
```
### node
```javascript
require('html2json').html2json;
require('html2json').json2html;
```
### result
json:

@@ -63,4 +76,2 @@

result:
```javascript

@@ -67,0 +78,0 @@ json === html2json(html);

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc