data-set

Element#dataset abstraction

npm install data-set
59 downloads in the last day
222 downloads in the last week
942 downloads in the last month

data-set

Element#dataset abstraction

Example

<div data-foo="bar"></div>
var DataSet = require("data-set")
    , assert = require("assert")

var elem = thatElement
    , ds = DataSet(elem)

assert.equal(ds.foo, "bar")

Installation

npm install data-set

Contributors

  • Raynos

MIT Licenced

npm loves you