open-index/open-npm huggingface dataset:
npm package: @platformparity/dom-exception
Description: An implementation of the DOMException class from browsers
Author: Domenic Denicola
Latest version: 1.0.0-wip.5

# DOM Exception

This package implements the [`DOMException`](https://heycam.github.io/webidl/#idl-DOMException) class, from web browsers. It exists in service of [jsdom](https://github.com/tmpvar/jsdom) and related packages.

Example usage:

```js
const { DOMException } = require("@platformparity/dom-exception");

const e1 = new DOMException("Something went wrong", "BadThingsError");
console.assert(e1.name === "BadThingsError");
console.assert(e1.code === 0);

const e2 = new DOMException("Another exciting error message", "NoModificationAllowedError");
console.assert(e2.name === "NoModificationAllowedError");
console.assert(e2.code === 7);

console.assert(DOMException.INUSE_ATTRIBUTE_ERR === 10);
```
npm package: @platformparity/file-api
Description: An implementation of the File API for node
Author: Florian Klampfer
Latest version: 1.0.0-wip.6

# File API

An implementation of the File API for node.

Based on the [`jsdom`](https://github.com/jsdom/jsdom) File API implementation, but using [`event-target-shim`](https://github.com/mysticatea/event-target-shim) as base class (via the `@platformparity/event-target` module).

**This is Work in Progress!** The `event-target-shim` doesn't seem to be spec-compliant and adds extra behavior.