2.0.0 • Published 5 years ago

elem-dataset v2.0.0

Weekly downloads
17,216
License
MIT
Repository
github
Last release
5 years ago

elem-dataset Build Status

HTML5 HTMLElement.dataset ponyfill

Note that "true" and "false" values are not allowed on boolean attributes.

Install

$ npm install --save elem-dataset

Usage

import elementDataset from 'elem-dataset';

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

License

MIT © Alex Cross