# ndjs

> A JavaScript implementation of W3C DOM for Node.js

Latest version **1.0.0-beta.4** (published 2018-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install ndjs
pnpm add ndjs
yarn add ndjs
bun add ndjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.4 |
| Published | 2018-09-28 |
| First published | 2018-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 372.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jianwei Liu |
| Maintainers | jianweiliu |
| Keywords | W3C, DOM, jQuery |

## Links

- npm: https://www.npmjs.com/package/ndjs
- Repository: https://github.com/LTTPP/NDjs
- Homepage: https://github.com/LTTPP/NDjs#readme
- Issues: https://github.com/LTTPP/NDjs/issues
- npm.io page: https://npm.io/package/ndjs

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0-beta.4 (latest) — 2018-09-28
- 1.0.0-beta.3 — 2018-09-28
- 1.0.0-beta.2 — 2018-09-24

## README

# NDjs

A JavaScript implementation of W3C DOM for Node.js. It supports
`DOMParser` and `XMLSerializer` interface such as in browser, it can also provide a window with a document for [jQuery](https://github.com/jquery/jquery) to work in Node.js.

## Installation

### Node.js

```
npm install ndjs
```

### AMD

Follow the instruction of the environments you are using.

## How to use

### Node.js

```JavaScript
var ndjs = require('ndjs');

var html = '<html><body>NDjs</body></html>';
var dom = new ndjs.DOMParser().parseFromString(html);
var window = ndjs.window(dom);
```

### AMD

```JavaScript
define(['ndjs'], function(ndjs){
    var html = '<html><body>NDjs</body></html>';
    var dom = new ndjs.DOMParser().parseFromString(html);
    var window = ndjs.window(dom);
});
```

## Authors and Contributors

+ Jianwei Liu

## License

NDjs is released under the [MIT license](http://www.opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/ndjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
