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

hast-util-to-dom

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hast-util-to-dom - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

15

package.json
{
"name": "hast-util-to-dom",
"version": "2.0.2",
"version": "2.0.3",
"description": "hast utility to transform to the DOM",

@@ -9,2 +9,3 @@ "license": "ISC",

"hast",
"hast-util",
"util",

@@ -18,2 +19,6 @@ "utility",

"bugs": "https://github.com/syntax-tree/hast-util-to-dom/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Keith McKnight <keith@mcknig.ht> (https://keith.mcknig.ht)",

@@ -39,3 +44,3 @@ "contributors": [

"babel-eslint": "^10.0.0",
"babel-jest": "^24.0.0",
"babel-jest": "^25.0.0",
"eslint": "^6.0.0",

@@ -47,7 +52,7 @@ "eslint-config-airbnb-base": "^14.0.0",

"jasmine-core": "^3.0.0",
"jest-cli": "^24.0.0",
"jest-cli": "^25.0.0",
"karma": "^4.0.0",
"karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^2.0.0",
"karma-jasmine": "^3.0.0",
"karma-mocha-reporter": "^2.0.0",

@@ -63,3 +68,3 @@ "karma-rollup-preprocessor": "^7.0.0",

"rollup-plugin-node-resolve": "^5.0.0",
"w3c-xmlserializer": "^1.1.2"
"w3c-xmlserializer": "^2.0.0"
},

@@ -66,0 +71,0 @@ "scripts": {

@@ -27,3 +27,3 @@ # hast-util-to-dom

## Usage
## Use

@@ -33,5 +33,5 @@ This utility is intended for browser use!

```js
import toDOM from 'hast-util-to-dom';
import toDom from 'hast-util-to-dom';
const el = toDOM({
const el = toDom({
type: 'element',

@@ -75,3 +75,3 @@ tagName: 'h1',

### `toDOM(node[, options])`
### `toDom(node[, options])`

@@ -115,4 +115,4 @@ Transform a [**hast**][hast] [*tree*][tree] to a DOM tree.

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

@@ -148,3 +148,3 @@

[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg

@@ -151,0 +151,0 @@ [chat]: https://spectrum.chat/unified/syntax-tree

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