New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dombat

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dombat

ultra-lightweight DOM builder

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dombat

Install

From NPM:
npm install dombat

From GitHub:
npm install xist/dombat

Example

import { html, head, title, body, div, p } from "dombat";
// import * as tag from "dombat"; <-- or you can do this

const dom = html(
  head(title("Example DOM")),
  body(div(p("This is an example paragraph inside a div.")))
);

The output of dom.getHTML() would be:

<html>
  <head>
    <title>Example DOM</title>
  </head>
  <body>
    <div>
      <p>This is an example paragraph inside a div.</p>
    </div>
  </body>
</html>

Contribute

Pull requests are encouraged.

FAQs

Package last updated on 19 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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