1.1.2 • Published 4 months ago

undom-ng v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

undom-ng

NPM

The Next Gen minimally viable DOM Document implementation

NOTE THIS IS A FORK OF UNDOM WITH SOME HUGE CHANGES THAT MIGHT NOT FIT THE GOAL OF THE ORIGINAL PROJECT.

A bare-bones HTML DOM in a box. If you want the DOM but not a parser, this might be for you.

Works in Node and browsers, plugin ready!


Project Goals

Undom aims to find a sweet spot between size/performance and utility. The goal is to provide the simplest possible implementation of a DOM Document, such that libraries relying on the DOM can run in places where there isn't one available.

The intent to keep things as simple as possible means undom lacks some DOM features like HTML parsing & serialization, Web Components, etc. These features can be added through additional libraries.


Installation

Via npm:

npm install undom-ng


Derivatives

DOMiNATIVE Generic DOM implementation for NativeScript


Usage

import { createEnvironment, HTMLNS } from 'undom-ng'

const { createDocument } = createEnvironment()

const document = createDocument(HTMLNS, 'html')

const foo = document.createElementNS(HTMLNS, 'foo')
foo.appendChild(document.createTextNode('Hello, World!'))
document.body.appendChild(foo);

Serialize to HTML

import { serialize } from 'undom-ng'

console.log(serialize(element))
1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.10

11 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago