anima-data
v1.0.0data
data module from zepto.
data
data(name) ⇒ value data(name, value) ⇒ self
Read or write data-*
DOM attributes. Behaves like attr, but prepends data-
to the attribute name.
When reading attribute values, the following conversions apply: v1.0+
- “true”, “false”, and “null” are converted to corresponding types;
- number values are converted to actual numeric types;
- JSON values are parsed, if it’s valid JSON;
- everything else is returned as string.
npm i [email protected]
Metadata
- Unknown
- >=4.0.0
- [email protected]
- released 12/28/2015