pikadun / dom

A small, lightweight DOM tree implement with Typescript!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A small, lightweight DOM tree implement with Typescript!


Languages

Language:TypeScript 100.0%