@pikadun/dom
TypeScript icon, indicating that this package has built-in type declarations

0.6.1 • Public • Published

Dom

A DOM tree implement with Typescript!

Feature

  • Provide the same API like the browser.
  • Small and lightweight.

Example

import { Document } from '@pikadun/dom';
const document = new Document();
const div = document.createElement('div');
div.setAttribute('class','test');
document.appendChild(div);

// <div class="test"></div>
document.toString();

Installation

npm install @pikadun/dom

Document

More document can be found on https://github.com/pikadun/dom/wiki

Readme

Keywords

Package Sidebar

Install

npm i @pikadun/dom

Weekly Downloads

0

Version

0.6.1

License

MIT

Unpacked Size

14.7 kB

Total Files

14

Last publish

Collaborators

  • pikadun