{"_id":"dom-classlist","_rev":"11-f734f92c0ba8bb013dcdbb9dbe33a930","name":"dom-classlist","description":"Cross-browser element (including SVG) class list manipulation","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"dom-classlist","version":"1.0.0","description":"Cross-browser element (including SVG) class list manipulation","files":["index.js"],"devDependencies":{"karma":"~0.12.22","karma-chrome-launcher":"~0.1.4","karma-cli":"~0.0.4","karma-commonjs":"~0.0.11","karma-firefox-launcher":"~0.1.3","karma-jasmine":"~0.2.2"},"scripts":{"test":"karma start --single-run","watch":"karma start"},"license":"MIT","repository":{"type":"git","url":"https://github.com/necolas/dom-classlist.git"},"keywords":["browser","classes","classList","dom"],"bugs":{"url":"https://github.com/necolas/dom-classlist/issues"},"homepage":"https://github.com/necolas/dom-classlist","_id":"dom-classlist@1.0.0","dist":{"shasum":"9b26db1c66dd26ff89466929df7ec210eed7a9df","tarball":"https://registry.npmjs.org/dom-classlist/-/dom-classlist-1.0.0.tgz","integrity":"sha512-Wh4DpJ2xeDJSKnnkey3gJR1RBPxmFqPuYUNN/d+1QiR6D0WvgBHcxRSCeu0GFWIIekeRGlnCZH6CZPAS8369Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCszcghMdtXiFOweTOTwsTvTrG4hdmjyUzg+u/SQE7FsgIhAN22/xkGqVOnfvesuurZx42Rzp4bIGoqhKcM0SDG6gla"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"necolas","email":"nicolasgallagher@gmail.com"},"maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}]},"1.0.1":{"name":"dom-classlist","version":"1.0.1","description":"Cross-browser element (including SVG) class list manipulation","files":["index.js"],"devDependencies":{"karma":"~0.12.22","karma-chrome-launcher":"~0.1.4","karma-cli":"~0.0.4","karma-commonjs":"~0.0.11","karma-firefox-launcher":"~0.1.3","karma-jasmine":"~0.2.2"},"scripts":{"test":"karma start --single-run","watch":"karma start"},"license":"MIT","repository":{"type":"git","url":"https://github.com/necolas/dom-classlist.git"},"keywords":["browser","classes","classList","dom"],"bugs":{"url":"https://github.com/necolas/dom-classlist/issues"},"homepage":"https://github.com/necolas/dom-classlist","_id":"dom-classlist@1.0.1","dist":{"shasum":"722814dc2f509d3d7d06f2533ba9ff48eeea59b9","tarball":"https://registry.npmjs.org/dom-classlist/-/dom-classlist-1.0.1.tgz","integrity":"sha512-d2wuVctZMNDwyyoIEQK0oueryEOtFGmOKNMqWEWlSFvm4y6gGcgy42aBbk7YDoaN18ynHivVrb17BArd/ccGKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1QIguFShKBS1zU8IMtoDVxvTHiukvXqJjpi+udmMy7gIhAP0iQbkgtYNz6hxRxKjqbECZGgYMjZET7X4hMuXKQrxw"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"necolas","email":"nicolasgallagher@gmail.com"},"maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}]}},"readme":"# dom-classlist\n\n[![Build Status](https://secure.travis-ci.org/necolas/dom-classlist.png?branch=master)](http://travis-ci.org/necolas/dom-classlist)\n\nCross-browser element class manipulation (including support for SVG elements),\nutilizing the native `classList` when possible.\n\n## Installation\n\n```\nnpm install dom-classlist\n```\n\n## Example\n\n```js\nvar classList = require('dom-classlist');\n\nclassList(el).toArray();\n// => [ 'foo', 'bar' ]\n\nclassList(el).add('baz');\nclassList(el).remove('bar');\nclassList(el).remove(/^foo/);\n\nclassList(el).toggle('bar');\n// => true\nclassList(el).toggle('bar');\n// => false\n\nclassList(el).contains('bar');\n// => false\n```\n\n## API\n\n### .toArray()\n\nReturn an array of the element's classes.\n\n### .add(class)\n\nAdd the `class` to the class list.\n\n### .remove(class|regex)\n\nRemove the `class` from the class list, or remove all class names matching the `regex` regular expression.\n\n### .toggle(class)\n\nToggle the `class` in the class list.\n\n### .contains(class)\n\nCheck if the `class` is present in the class list.\n\n## Browser support\n\n* Google Chrome\n* Firefox 4+\n* Internet Explorer 8+\n* Safari 5+\n* Opera\n","maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}],"time":{"modified":"2022-06-15T21:05:49.200Z","created":"2014-08-24T19:10:08.756Z","1.0.0":"2014-08-24T19:10:08.756Z","1.0.1":"2014-08-24T19:33:02.606Z"},"homepage":"https://github.com/necolas/dom-classlist","keywords":["browser","classes","classList","dom"],"repository":{"type":"git","url":"https://github.com/necolas/dom-classlist.git"},"bugs":{"url":"https://github.com/necolas/dom-classlist/issues"},"license":"MIT","readmeFilename":"README.md","users":{"prisme":true}}