HTML5
HTMLElement.dataset
ponyfill
Note that "true" and "false" values are not allowed on boolean attributes.
$ npm install --save elem-dataset
import elementDataset from 'elem-dataset';
const element = document.querySelector('.foo');
const attributes = elementDataset(element);
MIT © Alex Cross