# elem-dataset

> HTML5 HTMLElement.dataset ponyfill

Latest version **2.0.0** (published 2019-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install elem-dataset
pnpm add elem-dataset
yarn add elem-dataset
bun add elem-dataset
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-02-14 |
| First published | 2016-10-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Alex Cross |
| Maintainers | awcross |
| Keywords | html, htmlelement, element, data, dataset, html5, polyfill, ponyfill, attr, attributes, custom, property |

## Links

- npm: https://www.npmjs.com/package/elem-dataset
- Repository: https://github.com/awcross/elem-dataset
- Homepage: https://github.com/awcross/elem-dataset#readme
- Issues: https://github.com/awcross/elem-dataset/issues
- npm.io page: https://npm.io/package/elem-dataset

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-02-14
- 1.1.1 — 2016-10-07
- 1.1.0 — 2016-10-06
- 1.0.0 — 2016-10-06

## README

# elem-dataset [![Build Status](https://travis-ci.org/awcross/elem-dataset.svg?branch=master)](https://travis-ci.org/awcross/elem-dataset)

> HTML5 [`HTMLElement.dataset`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset) [ponyfill](https://ponyfill.com)

*Note that "true" and "false" values are [not allowed on boolean attributes](https://w3c.github.io/html/infrastructure.html#sec-boolean-attributes).*

## Install

```
$ npm install --save elem-dataset
```

## Usage

```js
import elementDataset from 'elem-dataset';

const element = document.querySelector('.foo');
const attributes = elementDataset(element);
```

## License

MIT © [Alex Cross](https://alexcross.io)

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