Socket
Socket
Sign inDemoInstall

posthtml-attrs-parser

Package Overview
Dependencies
0
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

dist/index.cjs

24

package.json
{
"name": "posthtml-attrs-parser",
"version": "1.0.1",
"version": "1.1.0",
"description": "PostHTML helper that provides a better API to work with tag attributes.",
"main": "lib/index.js",
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "./dist/index.mjs",
"files": [
"lib"
"dist"
],

@@ -15,2 +22,4 @@ "author": "Kirill Maltsev <maltsevkirill@gmail.com>",

"release": "np",
"build": "unbuild",
"prepack": "unbuild",
"lint": "eslint lib/*.js",

@@ -29,7 +38,8 @@ "pretest": "npm run lint",

"devDependencies": {
"@vitest/coverage-v8": "^1.2.1",
"eslint": "^8.56.0",
"np": "^9.2.0",
"@vitest/coverage-v8": "^1.4.0",
"eslint": "^8.5.7",
"np": "^10.0.0",
"posthtml": "^0.16.6",
"vitest": "^1.2.1"
"unbuild": "^2.0.0",
"vitest": "^1.4.0"
},

@@ -36,0 +46,0 @@ "engines": {

@@ -13,3 +13,3 @@ <div align="center">

[npm]: https://www.npmjs.com/package/posthtml-attrs-parser
[npm-version-shield]: https://img.shields.io/npm/v/posthtml-attrs-parser.svg
[npm-version-shield]: https://img.shields.io/npm/v/posthtml-attrs-parser
[npm-stats]: http://npm-stat.com/charts.html?package=posthtml-attrs-parser

@@ -24,4 +24,2 @@ [npm-stats-shield]: https://img.shields.io/npm/dt/posthtml-attrs-parser.svg

This plugin is ESM-only.
## Usage

@@ -51,2 +49,11 @@ ```js

Both ESM and CJS exports are provided, you can use the plugin in CJS too:
```js
const posthtml = require('posthtml');
const parseAttrs = require('posthtml-attrs-parser');
// ...
```
## Attributes

@@ -53,0 +60,0 @@

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