node package manager

data-set

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