Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

pikadun/dom

Repository files navigation

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!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published