{"name":"element-class","description":"add and remove classes from dom elements","author":{"name":"Max Ogden","email":"max@maxogden.com"},"repository":{"type":"git","url":"git@github.com:maxogden/element-class.git"},"version":"0.1.1","bugs":{"url":"https://github.com/maxogden/element-class/issues"},"homepage":"https://github.com/maxogden/element-class","main":"index.js","dependencies":{"inherits":"~1.0.0"},"devDependencies":{"tape":"^2.10.2"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"_id":"element-class@0.1.1","dist":{"shasum":"890f57bc0e1365d3794316518db121c859d15e4f","tarball":"http://registry-npm.ywwl.com/element-class/download/element-class-0.1.1.tgz","integrity":"sha512-jUN7QxMb2Yv255s/5DYSD0UZoAqC/J1tLVbbYAqzrwDp+yrTcjh6QfinLJEw0lT2h1R23wk27Vcfm/66LfXiIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLdF/Uqoxxo5fq5M3VPgjPerKXtrhPIpb8YpE1Ow6tsAiEAoy2vi+XwYT85W53Dq+wrE3alVX88bpC4Whznn7DVaYU="}],"size":1338,"noattachment":false,"key":"/element-class/-/element-class-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"directories":{},"readme":"# element-class\n\nlike .addClass, .removeClass .toggleClass and .hasClass from jquery but without dependencies\n\n[![testling badge](https://ci.testling.com/maxogden/element-class.png)](https://ci.testling.com/maxogden/element-class)\n\n```\nnpm install element-class\n```\n\n```javascript\nvar elementClass = require('element-class')\n\n// get an element\nvar foo = document.querySelector('.foo')\n\n// remove a class\nelementClass(foo).remove('foo')\n\n// add a class\nelementClass(foo).add('foo')\n\n// toggle a class\nelementClass(foo).toggle('foo')\n\n// check if element has a class\nelementClass(foo).has('foo')\n```\n\n## license\n\nBSD\n","publish_time":1395428816813,"_cnpm_publish_time":1395428816813,"dist-tags":{"latest":"0.2.2"}}