@linthtml/html-parser
Advanced tools
Comparing version 0.9.0-alpha.1 to 0.9.0-alpha.4
{ | ||
"name": "@linthtml/html-parser", | ||
"version": "0.9.0-alpha.1", | ||
"version": "0.9.0-alpha.4", | ||
"description": "LintHTML HTML parser", | ||
@@ -8,3 +8,4 @@ "author": "BenjaminJ <kamikillerto@gmail.com>", | ||
"license": "ISC", | ||
"main": "lib/index.js", | ||
"main": "dist/lib/index.js", | ||
"types": "dist/lib/index.d.ts", | ||
"directories": { | ||
@@ -15,3 +16,3 @@ "lib": "lib", | ||
"files": [ | ||
"lib" | ||
"dist" | ||
], | ||
@@ -23,3 +24,5 @@ "repository": { | ||
"scripts": { | ||
"test": "mocha '__tests__' --bail" | ||
"clean": "rm -rf dist", | ||
"test": "mocha -r ts-node/register '__tests__/*.ts' --bail", | ||
"build": "tsc --build" | ||
}, | ||
@@ -30,8 +33,14 @@ "bugs": { | ||
"dependencies": { | ||
"@linthtml/dom-utils": "^0.9.0-alpha.1", | ||
"htmlparser2": "^6.1.0" | ||
"@linthtml/dom-utils": "^0.9.0-alpha.4", | ||
"domhandler": "^4.2.2", | ||
"htmlparser2": "^7.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.21", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.9.1", | ||
"chai": "^4.3.4", | ||
"mocha": "^9.1.1" | ||
"mocha": "^9.1.1", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.4.2" | ||
}, | ||
@@ -41,3 +50,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "11b8ae898a3e08c266c9a288cc59d354d48514e0" | ||
"gitHead": "ada7835327aa933c1ec68e5c915259fe6c1b89d4" | ||
} |
@@ -1,11 +0,7 @@ | ||
# `linthtml-parser` | ||
# `@linthtml/html-parser` | ||
> TODO: description | ||
HTML parser for LintHTML. | ||
## Usage | ||
The parser is base on [htmlparser2](https://www.npmjs.com/package/htmlparser2). | ||
``` | ||
const linthtmlParser = require('linthtml-parser'); | ||
// TODO: DEMONSTRATE API | ||
``` | ||
You should not install this package by yourself as it's by default included in [LintHTML](https://www.npmjs.com/package/@linthtml/linthtml). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70431
10
3
7
193
8
1
+ Addeddomhandler@^4.2.2
+ Addedentities@3.0.1(transitive)
+ Addedhtmlparser2@7.2.0(transitive)
- Removedhtmlparser2@6.1.0(transitive)
Updatedhtmlparser2@^7.1.2