{"_id":"dom101","_rev":"1745231","name":"dom101","description":"DOM manipulation functions.","dist-tags":{"latest":"2.2.1"},"maintainers":[{"email":"dropbox@ricostacruz.com","name":"rstacruz"}],"time":{"modified":"2026-11-19T13:56:59.000Z","created":"2015-01-09T05:50:11.884Z","2.2.1":"2017-10-17T03:40:29.189Z","2.2.0":"2017-10-16T07:20:15.560Z","2.1.0":"2017-10-12T19:10:44.865Z","2.0.1":"2017-09-30T18:32:32.711Z","1.3.0":"2016-04-26T07:37:37.889Z","1.2.0":"2015-11-22T03:05:40.055Z","1.1.0":"2015-10-06T22:53:47.142Z","1.0.0":"2015-08-03T21:32:01.248Z","0.7.2":"2015-07-01T01:36:44.861Z","0.7.0":"2015-03-12T11:36:04.348Z","0.6.0":"2015-01-29T05:15:01.993Z","0.5.0":"2015-01-28T09:27:44.634Z","0.4.0":"2015-01-11T14:47:28.559Z","0.3.0":"2015-01-09T07:35:47.177Z","0.2.0":"2015-01-09T06:51:36.965Z","0.1.0":"2015-01-09T05:50:11.884Z"},"users":{"s4g6":true,"kubens":true,"hugozap":true},"author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"versions":{"2.2.1":{"name":"dom101","description":"DOM manipulation functions.","version":"2.2.1","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"docpress":"0.6.13","git-update-ghpages":"1.3.0","jest":"21.2.1","mdx":"0.3.1","npm-run-all":"4.1.1","prettier-standard":"7.0.1","standard":"10.0.3"},"directories":{"test":"test"},"homepage":"https://ricostacruz.com/dom101","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"jest","lint":"standard","prepare":"make -B prepare"},"gitHead":"9afd10c27a82c812d964635ba825b32863b2c736","_id":"dom101@2.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"integrity":"sha512-xPZjrYTprHPipC6z30X9LfKhkFeI6ESzMxSise6mqwqYC05MuDC0m0djEJ6cFVKhIPzUfonmnSm0z9Jgn84c1w==","shasum":"16bdf36daf58a5846f72f3d8e48ba0ec1b186330","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-2.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+XruLHkqgrtRE0X1w9rLUssDSdVA74v5MludieMkKbgIgJekozhHm9pSIInFwljYb5GRWTbpziOhPDi/woi/LGp4="}],"size":76111,"noattachment":false,"key":"/dom101/-/dom101-2.2.1.tgz"},"maintainers":[{"email":"dropbox@ricostacruz.com","name":"rstacruz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom101-2.2.1.tgz_1508211629113_0.3071373088750988"},"publish_time":1508211629189,"_cnpm_publish_time":1508211629189},"2.2.0":{"name":"dom101","description":"DOM manipulation functions.","version":"2.2.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"docpress":"0.6.13","git-update-ghpages":"1.3.0","jest":"21.2.1","mdx":"0.3.1","npm-run-all":"4.1.1","prettier-standard":"7.0.1","standard":"10.0.3"},"directories":{"test":"test"},"homepage":"https://ricostacruz.com/dom101","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"jest","lint":"standard","prepare":"make -B prepare"},"gitHead":"aac31cff4b8ac85af8f7d3ed54090ee00a92eee1","_id":"dom101@2.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"integrity":"sha512-9i8azkVUYYEtCX/Cx25+ujGCx+qP1zSV5r5w4qjTQMdHB25xddyJxVcLx1UB6LpkN2W9C6cdlGGrMutf4md/6Q==","shasum":"d708dd6acbcb61e4fc53fcf950a7c314c330d988","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-2.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE8jRXuoi+tgntsi9Gr7rd+SRjBQBE7smnXAEhKbilnuAiAfCtAgt/iUVnx6SHvXQngpETnf7mHS1yvzvvs1haGNxw=="}],"size":76022,"noattachment":false,"key":"/dom101/-/dom101-2.2.0.tgz"},"maintainers":[{"email":"dropbox@ricostacruz.com","name":"rstacruz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom101-2.2.0.tgz_1508138415473_0.016613689018413424"},"publish_time":1508138415560,"_cnpm_publish_time":1508138415560},"2.1.0":{"name":"dom101","description":"DOM manipulation functions.","version":"2.1.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"13.3.0","chai":"3.4.1","docpress":"0.6.13","git-update-ghpages":"1.3.0","jsdom":"9.2.1","mdx":"0.3.1","mocha":"2.5.2","mocha-jsdom":"1.0.0","mocha-standard":"1.0.0","semistandard":"7.0.4"},"directories":{"test":"test"},"homepage":"https://ricostacruz.com/dom101","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha","prepublish":"make update"},"gitHead":"1c264fa8e80f0131316afdd4e7f7ee1c29e6c99d","_id":"dom101@2.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"integrity":"sha512-Nnlf5G+Pzxbzcwynt+m6wMdwyZzfQJwqO776syRWnWJB+nhJG3kQS+mqUbLJU5mKyGIY/vlaYsWTsBtacezSnw==","shasum":"45fcee0100e078591696bec6e75276b5d03c0b5c","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp5cbyhzYSTvw+wYDvdzJGl1CN9KVt6iCB6/h49HdkywIhAMRYzZRG0PnEByRAs+gE05cMGr/xS6v3Idey9pSbZnAs"}],"size":74543,"noattachment":false,"key":"/dom101/-/dom101-2.1.0.tgz"},"maintainers":[{"email":"dropbox@ricostacruz.com","name":"rstacruz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom101-2.1.0.tgz_1507835444770_0.16466579027473927"},"publish_time":1507835444865,"_cnpm_publish_time":1507835444865},"2.0.1":{"name":"dom101","description":"DOM manipulation functions.","version":"2.0.1","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"13.3.0","chai":"3.4.1","docpress":"0.6.13","git-update-ghpages":"1.3.0","jsdom":"9.2.1","mdx":"0.3.1","mocha":"2.5.2","mocha-jsdom":"1.0.0","mocha-standard":"1.0.0","semistandard":"7.0.4"},"directories":{"test":"test"},"homepage":"https://ricostacruz.com/dom101","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha","prepublish":"make update"},"gitHead":"26fcd435fa65eb40662139e6bbfe759a8abd4629","_id":"dom101@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"integrity":"sha512-nGLj78tcOmcCxeihML2Sy5cPdZW2cVmwXozHxrGVPeaQOPqghKLfafOTCCQDJJDHOxzaJLph1GxpbWy0XfaINA==","shasum":"b40f643ce977e30989014bce40479bceef0ff29a","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoCoIA6Mk0jsAx2DzhalH7QMljuK7r8Qc+fjo/yoQQpAiBbkckBUfKH2CBeq7vLi9RHuu2VT63jr0021r2oZlIPLA=="}],"size":74472,"noattachment":false,"key":"/dom101/-/dom101-2.0.1.tgz"},"maintainers":[{"email":"dropbox@ricostacruz.com","name":"rstacruz"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom101-2.0.1.tgz_1506796352556_0.12718062894418836"},"publish_time":1506796352711,"_cnpm_publish_time":1506796352711},"1.3.0":{"name":"dom101","description":"DOM manipulation functions.","version":"1.3.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"12.0.2","chai":"3.4.1","docpress":"0.6.10","git-update-ghpages":"1.3.0","jsdom":"8.0.4","mdx":"0.3.1","mocha":"2.4.4","mocha-jsdom":"1.0.0","mocha-standard":"1.0.0","semistandard":"7.0.4"},"directories":{"test":"test"},"homepage":"https://ricostacruz.com/dom101","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha","prepublish":"make update"},"gitHead":"fd7453dc4ff714d0fb593498279d904f2b6dd974","_id":"dom101@1.3.0","_shasum":"d7fca30686240171b6cf17c2e855d6a32fa2c9c9","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"rstacruz","email":"dropbox@ricostacruz.com"},"dist":{"shasum":"d7fca30686240171b6cf17c2e855d6a32fa2c9c9","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-1.3.0.tgz","integrity":"sha512-yJUoCUvcFoUVuCkV4hu91U/toyzRmt4HmphiHEQm/+8GKqNTv/9W1Lr/AeSGAZnU5UMOPoeyv+XqUqRym2/nWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/XKJmnDxNdJ+WmE2idoUJO4Uc6IUEgMHwQ8eJ1pxIpAiBwuUOY5+AOB8VvAeZRqpnZ4olSagkLvAoffe+moPcxOg=="}],"size":13023,"noattachment":false,"key":"/dom101/-/dom101-1.3.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/dom101-1.3.0.tgz_1461656254669_0.07298946683295071"},"publish_time":1461656257889,"_cnpm_publish_time":1461656257889},"1.2.0":{"name":"dom101","description":"DOM manipulation functions.","version":"1.2.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"12.0.1","chai":"3.4.1","docpress":"0.6.1","git-update-ghpages":"1.3.0","jsdom":"7.0.2","mdextract":"1.0.0","mocha":"2.3.3","mocha-jsdom":"1.0.0","mocha-standard":"1.0.0","semistandard":"7.0.2"},"directories":{"test":"test"},"homepage":"https://ricostacruz.com/dom101","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha","prepublish":"make update"},"gitHead":"7e4c519cc421255c83a478b79b65382d93bdad3d","_id":"dom101@1.2.0","_shasum":"35657dc375ef7161043707e0c68b814488ebd3ff","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"dist":{"shasum":"35657dc375ef7161043707e0c68b814488ebd3ff","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-1.2.0.tgz","integrity":"sha512-jVsgNa+ZCtxH2427Mk+qAs5LYIm1beLJQr7pA56DCxdAUs+tBE+G+IUqDqYrF7ouqrFw07fohuRCiGP+DOn8XQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIDAZadhHDuHKkaUUO6NLX+6ctiFp38bUtlKvD/wfjSAiEArXcA5aOQ0oSOs2OcW8HFaDoyXH9hg4nC/LBagYHWyqY="}],"size":12402,"noattachment":false,"key":"/dom101/-/dom101-1.2.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"publish_time":1448161540055,"_cnpm_publish_time":1448161540055},"1.1.0":{"name":"dom101","description":"DOM manipulation functions.","version":"1.1.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"11.2.0","chai":"3.3.0","jsdom":"6.5.1","mdextract":"1.0.0","mocha":"2.3.3","mocha-jsdom":"1.0.0","mocha-standard":"1.0.0","semistandard":"7.0.2"},"directories":{"test":"test"},"homepage":"https://github.com/rstacruz/dom101#readme","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha","prepublish":"mdextract -u README.md"},"gitHead":"ff885ed294b2a71de1300fd261f8a9f76fa3e09d","_id":"dom101@1.1.0","_shasum":"12e8a1bc437f3c6b33ab3200126e5e6fea87a846","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"dist":{"shasum":"12e8a1bc437f3c6b33ab3200126e5e6fea87a846","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-1.1.0.tgz","integrity":"sha512-2DrLYoWCan6EY4OgMjft3Uh8756V+YgYNo57mAzllFqFMf45gS32UV7R1Tzgrp+G1DW8dL+F0LAsjIzqo/aPPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD5j2fNlkq5ie5PtYf++RtuDRxbzI8SY9Ojm0ALul2eAIgEp2h3a0FvTxCUiDnVCxW7f98u6pUfimA1IHP7saXK6Q="}],"size":11753,"noattachment":false,"key":"/dom101/-/dom101-1.1.0.tgz"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"publish_time":1444172027142,"_cnpm_publish_time":1444172027142},"1.0.0":{"name":"dom101","description":"DOM manipulation functions.","version":"1.0.0","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"^6.3.3","chai":"^3.0.0","jsdom":"^5.5.0","mdextract":"^1.0.0","mocha":"^2.2.5","mocha-jsdom":"^0.5.0","mocha-standard":"^0.1.0","semistandard":"^6.1.1"},"directories":{"test":"test"},"homepage":"https://github.com/rstacruz/dom101#readme","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha"},"gitHead":"c063958fb2e699089142592b185abffc078b96d4","_id":"dom101@1.0.0","_shasum":"fcb53dfd8854805f0ea630ba882934f3f7912b11","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"fcb53dfd8854805f0ea630ba882934f3f7912b11","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-1.0.0.tgz","integrity":"sha512-oh+TRcV/spwp2a37yZP1zN5rgtzfC3Q+L0A6hvddWJIZKuos3QGc15FFTwGjkNkH0w1gFXAPOZBOWfJZtXMGMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBibb6MantCZj6XknCO6ls7oy9L45+LxAA/NsfwFhBy6AiBoMr4McZ/rAJIjaOkflGbPXiZ1BSSXOwnX3VHC5pf2xQ=="}],"size":10767,"noattachment":false,"key":"/dom101/-/dom101-1.0.0.tgz"},"publish_time":1438637521248,"_cnpm_publish_time":1438637521248},"0.7.2":{"name":"dom101","description":"DOM manipulation functions.","version":"0.7.2","author":{"name":"Rico Sta. Cruz","email":"rico@ricostacruz.com"},"bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"devDependencies":{"browserify":"^6.3.3","chai":"^3.0.0","jsdom":"^5.5.0","mdextract":"^1.0.0","mocha":"^2.2.5","mocha-jsdom":"^0.5.0","mocha-standard":"^0.1.0","semistandard":"^6.1.1"},"directories":{"test":"test"},"homepage":"https://github.com/rstacruz/dom101#readme","keywords":["addclass","dom","helpers","html","jquery","removeclass","utils"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/rstacruz/dom101.git"},"scripts":{"test":"mocha"},"gitHead":"71aac071c67773a34ad27b412391143194c06a71","_id":"dom101@0.7.2","_shasum":"56c6c2baf34e3bb03c8066594d07ab0051c21b4a","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"56c6c2baf34e3bb03c8066594d07ab0051c21b4a","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.7.2.tgz","integrity":"sha512-myQE3CUh0nJhFjU+2440pB0vMneLM8ODWKmWNAmrVF/gngkf6kb8gONnqgeW0nrS0bF2Ut15pOKzjSlgFG+boQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICdktbxQ2+0KybPzruWhIN04CO5JUD88VsTUlGTxbV1ZAiBGGuEwyVaw/GEI+fhJ8F9V6pVBaSyFKM7uCF47cfg59A=="}],"size":10428,"noattachment":false,"key":"/dom101/-/dom101-0.7.2.tgz"},"publish_time":1435714604861,"_cnpm_publish_time":1435714604861},"0.7.0":{"name":"dom101","version":"0.7.0","description":"DOM manipulation functions.","main":"index.js","repository":{"git":"https://github.com/rstacruz/dom101"},"keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"7125da28efaaf87477020add16dd99fd833e81d7","_id":"dom101@0.7.0","_shasum":"92067ed3e36ca95facb453ae8328c02ad61202f8","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.3.0","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"92067ed3e36ca95facb453ae8328c02ad61202f8","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.7.0.tgz","integrity":"sha512-gL9OJRE4516sjH6uTyuFxvq7i9LGCzd4x8XVt2cD+cGm23QfqZ8OmJpi5DA8eOY/QFvX+ccXTpwTKX62A6sTKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjsQ40xKujw3g9Lg+3bZQQvRhvFf65u0VgKnh31MwKdAiAF1UtZEqrRVh1t+irekLB5jS5M1LWFdV7cz5CdhGqXzw=="}],"size":9588,"noattachment":false,"key":"/dom101/-/dom101-0.7.0.tgz"},"publish_time":1426160164348,"_cnpm_publish_time":1426160164348},"0.6.0":{"name":"dom101","version":"0.6.0","description":"DOM manipulation functions.","main":"index.js","repository":{"git":"https://github.com/rstacruz/dom101"},"keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"de60d64e69a16b06fce7e119d09bff16ce45bea9","_id":"dom101@0.6.0","_shasum":"f0b210317f904a42c683d25322acf5131663c6c0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"f0b210317f904a42c683d25322acf5131663c6c0","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.6.0.tgz","integrity":"sha512-rmab3KOQ/uw1f7akSXGb3iT1/D4CVeGE62K2BKE/V4dfaJR1oh2nvc3h2i2EVjqAuwCQM1i7LIZNRa0AnkLjYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXcea1+ifRA5BYjZrNKdd7iPAP3qV/alWGsBvd93bxUAiAo13TMibLHpViQ/wej7ekT99QWnj+yT2BM7QblSNXgAQ=="}],"size":8880,"noattachment":false,"key":"/dom101/-/dom101-0.6.0.tgz"},"publish_time":1422508501993,"_cnpm_publish_time":1422508501993},"0.5.0":{"name":"dom101","version":"0.5.0","description":"DOM manipulation functions.","main":"index.js","repository":{"git":"https://github.com/rstacruz/dom101"},"keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"9ba548c9b22924a4a109acb0badba790aa467af8","_id":"dom101@0.5.0","_shasum":"c003c5d69498f7a7c0a462bfdfbba880f7bff1a1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"c003c5d69498f7a7c0a462bfdfbba880f7bff1a1","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.5.0.tgz","integrity":"sha512-K4+xhs1aIPuIxC8JCPfmRtomFUNhCZopGMkHL6w0bs2QW/Y/o3HLwtZR/dqTkXpWhw0wNtbnsNO1tcyaAPLnBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFl76DCcSBp9Y9MFhxQ+UNleOD9AVr7l/RC0XLae8FYFAiEAtQwVZg423/i/ct9c8Dw1yYy28WxTjA+beij9FAUk3uw="}],"size":7586,"noattachment":false,"key":"/dom101/-/dom101-0.5.0.tgz"},"publish_time":1422437264634,"_cnpm_publish_time":1422437264634},"0.4.0":{"name":"dom101","version":"0.4.0","description":"DOM manipulation functions.","main":"index.js","repository":{"git":"https://github.com/rstacruz/dom101"},"keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"8aac944319b8385e6b3d85e8dfee061a67447376","_id":"dom101@0.4.0","_shasum":"fe2ab6f8be58c962535ec86287c958a5112e923c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"fe2ab6f8be58c962535ec86287c958a5112e923c","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.4.0.tgz","integrity":"sha512-X/o0L3s7TomiGMqOKP+oFtOTvAOx1EbEro2iNnIer4V2vPDNCklosNwaBrCIDQCyR4ArOGrBU+vGxFNW1sos+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTzy2cPvwI9I1cXVvGl/CHktggxT5bH+zuX+3/jMTSuAiEA++8m8b4bWCdd21jVuWshsu/kh3UYbEmByskywuSk7oI="}],"size":7053,"noattachment":false,"key":"/dom101/-/dom101-0.4.0.tgz"},"publish_time":1420987648559,"_cnpm_publish_time":1420987648559},"0.3.0":{"name":"dom101","version":"0.3.0","description":"DOM manipulation functions.","main":"index.js","repository":{"git":"https://github.com/rstacruz/dom101"},"keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"f4162cdc0f8b4fa333174f787734af37d802be98","_id":"dom101@0.3.0","_shasum":"f04b262d4bc4a162fdae986478b8efc5f8b5d3f0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"f04b262d4bc4a162fdae986478b8efc5f8b5d3f0","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.3.0.tgz","integrity":"sha512-SfjlsNaBLu1/ZJHO/NUFmWnOs4s6W3wuOaA0PrNOpfIMI8tLIehXNWq9m20ECtQSWaLXGgNnFQnpantgNamfLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICN9ni+N0xc/EirvPiqx1x7F47RGYgA61jIBC61GJV36AiAxXigW7ANNR3cdUNDGa7YXD8pEulJDoYgmRxXm27t0iA=="}],"size":6098,"noattachment":false,"key":"/dom101/-/dom101-0.3.0.tgz"},"publish_time":1420788947177,"_cnpm_publish_time":1420788947177},"0.2.0":{"name":"dom101","version":"0.2.0","description":"DOM manipulation functions.","main":"index.js","keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"68eb7c02f5b094536ec0fa20373112d5cee19fb4","_id":"dom101@0.2.0","_shasum":"7a0b41eaa3ab0c1fd524376667990dc750e7a390","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"7a0b41eaa3ab0c1fd524376667990dc750e7a390","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.2.0.tgz","integrity":"sha512-/egThuEnWUh+vowV7rHo/SiLa/fG6vJu1wrByf6JuykkTmp6EpORkWLdYfzc/aiRB3VGrERPwSU6S7mfVhuHxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGCfTsRyF8eTjS9ZYoQDoV2ZqzJ0yrSChdyiUHFmGTFQIhAILTEkpHZG8YwnJjw+xCp4ii2pB35DttrmiiZQRszcSc"}],"size":5887,"noattachment":false,"key":"/dom101/-/dom101-0.2.0.tgz"},"publish_time":1420786296965,"_cnpm_publish_time":1420786296965},"0.1.0":{"name":"dom101","version":"0.1.0","description":"DOM manipulation functions.","main":"index.js","keywords":["utils","helpers","jquery","dom","addclass","removeclass","html"],"directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Rico Sta. Cruz","email":"hi@ricostacruz.com"},"license":"MIT","devDependencies":{"browserify":"^6.3.3","chai":"^1.10.0","jsdom":"^1.3.1","mdextract":"^1.0.0","mocha":"^2.0.1","mocha-clean":"^0.4.0","mocha-jsdom":"^0.2.0"},"gitHead":"ecff3f5fea3d9d09749b926f434d9fb190643f33","_id":"dom101@0.1.0","_shasum":"57a1d2f51e8b89607aaeaa57cc57a4026174d91f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rstacruz","email":"rico@ricostacruz.com"},"maintainers":[{"name":"rstacruz","email":"rico@ricostacruz.com"}],"dist":{"shasum":"57a1d2f51e8b89607aaeaa57cc57a4026174d91f","tarball":"http://registry-npm.ywwl.com/dom101/download/dom101-0.1.0.tgz","integrity":"sha512-pMNL7A5A7qz9GDyl4DzZs1Hqu9p227/sWhn14J3QUNwHraubHvwxCUXFLCD9DYvApFmRAMSCxw+g9WTHUxMKMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGC5uqxWH/8cRCkHA2jQUkvf+dxUKFJU/+cGp+pxD2xqAiEAwSYro5OwYihWxXoXZ6DJZa4U7Wh+FyKcnmqSk7drqhc="}],"size":5352,"noattachment":false,"key":"/dom101/-/dom101-0.1.0.tgz"},"publish_time":1420782611884,"_cnpm_publish_time":1420782611884}},"readme":"# dom101\n\n<!-- {.massive-header.-with-tagline} -->\n\n> DOM manipulation utilities\n\ndom101 is a set of utilities for manipulating the DOM as single files.<br>\n*aka: Stop using jQuery.*\n\n```js\nvar addClass = require('dom101/add-class');\n\nel = document.createElement('div');\naddClass(el, 'active');\n```\n\n[![Status](https://travis-ci.org/rstacruz/dom101.svg?branch=master)](https://travis-ci.org/rstacruz/dom101)  \n\n## Why?\n\nIf you're writing a frontend library, it's best to avoid a dependency on\n[jQuery]. This means having to write your own DOM manipulation code,\nthough. To speed you along, I've packaged all that typical DOM\nmanipulation code into many single-use JS files.\n\n> #### Slim builds\n> You can use [browserify] to make your final bundle and it\n> will only bundle the functions it needs, instead of bundling a monolithic\n> jQuery.\n> \n> #### Copy-pastable\n> If you don't want to include dom101 as a dependency, each\n> file ([example]) stand on their own and can be easily pasted into your project.\n> \n> #### Semi-legacy support\n> Minimum browser fully-supported is IE8, with most of the utilities\n> working with even older IE versions.\n\ndom101 loosely follows the conventions of [101].\n\n## Reference\n\n| jQuery                      | dom101                                 |\n| ------                      | ------                                 |\n| `$(el).addClass('...')`     | [addClass](#addclass)(el, '...')       |\n| `$(el).hasClass('...')`     | [hasClass](#hasclass)(el, '...')       |\n| `$(el).removeClass('...')`  | [removeClass](#removeclass)(el, '...') |\n| `$(el).toggleClass('...')`  | [toggleClass](#toggleclass)(el, '...') |\n| `$(el).remove()`            | [remove](#remove)(el)                  |\n| `$(el).text()`              | [text](#text)(el)                      |\n| `$(el).text('...')`         | [text](#text)(el, '...')               |\n| `$(el).before(newEl)`       | [before](#before)(el, newEl)           |\n| `$(el).after(newEl)`        | [after](#after)(el, newEl)             |\n| `$(el).on('click', fn)`     | [on](#on)(el, 'click', fn)             |\n| `$(fn)`                     | [ready](#ready)(fn)                    |\n| `$(document).ready(fn)`     | [ready](#ready)(fn)                    |\n| `$(document).height()`      | [documentHeight](#documentheight)()    |\n| `$(document).width()`       | [documentWidth](#documentwidth)()      |\n| `$(el).outerHeight()`       | [outerHeight](#outerheight)(el)        |\n| `$(el).outerWidth()`        | [outerWidth](#outerwidth)(el)          |\n| `$(el).prepend(child)`      | [prepend](#prepend)(el, child)         |\n| `$(el).trigger('click')`    | [trigger](#trigger)(el, 'click')       |\n| `$(el).closest('selector')` | [closest](#closest)(el, 'selector')    |\n| `$(el).is('selector')`      | [matches](#matches)(el, 'selector')    |\n\n### Non-DOM utilities\n\n| jQuery                 | dom101                               |\n| ------                 | ------                               |\n| `$.each(list, fn)`     | [each](#each)(list, fn)              |\n| `$.map(list, fn)`      | [map](#map)(list, fn)                |\n| `$.extend(...)`        | [extend](#extend)(...)               |\n| `$.extend(true, ...)`  | [deepExtend](#deepextend)(...)       |\n| `$.isPlainObject(obj)` | [isPlainObject](#isplainobject)(obj) |\n\n### Aliases\n\nSome aliases for DOM functions are also added for convenience.\n\n| DOM                              | dom101                                     |\n| ---                              | ------                                     |\n| `document.querySelector(...)`    | [querySelector](#queryselector)(...)       |\n| `document.querySelectorAll(...)` | [querySelectorAll](#queryselectorall)(...) |\n\n### Not implemented\n\nSome DOM helpers aren't implemented, because they're easy enough to do with plain DOM API:\n\n| jQuery                              | DOM                                |\n| ------                              | ---                                |\n| `$('...')`                          | `document.querySelectorAll('...')` |\n| `$(el).attr('tabindex')`            | `el.getAttribute('tabindex')`      |\n| `$(el).attr('tabindex', 3)`         | `el.setAttribute('tabindex', 3)`   |\n| `$(el).css('border-radius', '3px')` | `el.style.borderRadius = '3px'`    |\n| `$(el).html()`                      | `el.innerHTML`                     |\n| `$(el).html('...')`                 | `el.innerHTML = '...'`             |\n| `$(el).parent()`                    | `el.parentNode`                    |\n| `$(el).clone()`                     | `el.cloneNode(true)`               |\n| `$(el).children()`                  | `el.children`                      |\n| `$el.find('...')`                   | `el.querySelectorAll('...')`       |\n| `$el.blur()`                        | `el.blur()`                        |\n| `$el.focus()`                       | `el.focus()`                       |\n| `$el.append(child)`                 | `el.appendChild(child)`            |\n| `$el.prop('checked')`               | `el.checked`                       |\n| `$el.prop('checked', true)`         | `el.checked = true`                |\n| `$el.prop('disabled')`              | `el.disabled`                      |\n| `$el.prop('disabled', true)`        | `el.disabled = true`               |\n\n## Install\n\ndom101 is available via [npm]. Perfect for use with [browserify].\n\n    $ npm install --save dom101\n\n[npm]: https://www.npmjs.org/package/dom101\n[browserify]: https://browserify.org\n\n[![npm version](http://img.shields.io/npm/v/dom101.svg?style=flat)](https://npmjs.org/package/dom101 \"View this project on npm\")\n\n## API Reference\n\n<!--api-->\n\n### addClass\n\n> `addClass(el, className)`\n\nAdds a class name to an element. Compare with `$.fn.addClass`.\n\n```js\nvar addClass = require('dom101/add-class');\n\naddClass(el, 'active');\n```\n\n### after\n\n> `after(el, newEl)`\n\nInserts a new element `newEl` just after `el`.\n\n```js\nvar after = require('dom101/after');\nvar newNode = document.createElement('div');\nvar button = document.querySelector('#submit');\n\nafter(button, newNode);\n```\n\n### before\n\n> `before(el, newEl)`\n\nInserts a new element `newEl` just before `el`.\n\n```js\nvar before = require('dom101/before');\nvar newNode = document.createElement('div');\nvar button = document.querySelector('#submit');\n\nbefore(button, newNode);\n```\n\n### closest\n\n> `closest(el, selector)`\n\nLooks for the closest ancestor of element `el` that matches `selector`.\nCompare with [$.fn.closest](http://api.jquery.com/closest/).\n\n```js\nvar closest = require('dom101/closest');\n\nclosest(input, 'label');\n```\n\n### deepExtend\n\n> `deepExtend(dest, src1, [src2 ...])`\n\nExtends object `dest` with properties from sources `src`.\nCompare with [$.extend(true)](http://api.jquery.com/jquery.extend/).\nAlso consider [deep-extend].\n\n[deep-extend]: http://npmjs.com/deep-extend\n\n```js\nvar deepExtend = require('dom101/deep-extend');\ndeepExtend({}, defaults, options);\n```\n\n### documentHeight\n\n> `documentHeight()`\n\nReturns the height of the document.\nCompare with jQuery's `$(document).height()`.\n\n```js\nvar documentHeight = require('dom101/document-height');\n\nvar height = documentHeight();\n```\n\n### documentWidth\n\n> `documentWidth()`\n\nReturns the width of the document.\nCompare with jQuery's `$(document).width()`.\n\n```js\nvar documentWidth = require('dom101/document-width');\n\nvar width = documentWidth();\n```\n\n### each\n\n> `each(list, fn)`\n\nIterates through `list` (an array or an object). This is useful when dealing\nwith NodeLists like `document.querySelectorAll`.\n\n```js\nvar each = require('dom101/each');\nvar qa = require('dom101/query-selector-all');\n\neach(qa('.button'), function (el) {\n  addClass('el', 'selected');\n});\n```\n\n### extend\n\n> `extend(dest, src1, [src2 ...])`\n\nExtends object `dest` with properties from sources `src`.\nCompare with [$.extend](http://api.jquery.com/jquery.extend/).\nAlso consider [object-assign] and the built-in `Object.assign`.\n\n[object-assign]: http://npmjs.com/object-assign\n\n```js\nvar extend = require('dom101/extend');\nextend({}, defaults, options);\n```\n\n### hasClass\n\n> `hasClass(el, className)`\n\nChecks if an element has a given class name.\n\n```js\nvar hasClass = require('dom101/has-class');\n\nel.className = 'selected active';\nhasClass(el, 'active') //=> true\n```\n\n### exports\n\nthis file is only provided for convenience and for tests.\nit's not advised to use it.\n\n### isPlainObject\n\n> `isPlainObject(obj)`\n\nChecks if `obj` is an object created with `{}` or `new Object`.\nCompare with [$.isPlainObject](http://api.jquery.com/jquery.isplainobject/).\n\n```js\nvar isPlainObject = require('dom101/is-plain-object');\n\nisPlainObject({}) //=> true\nisPlainObject([]) //=> false\n```\n\n### map\n\n> `map(list, fn)`\n\nIterates through `list` (an array or an object).\n\n```js\nvar map = require('dom101/map');\nvar text = require('dom101/text');\n\nmap(qa('.button'), function (el) {\n  return text(el);\n});\n```\n\n### matches\n\n> `matches(el, selector)`\n\nChecks if a given element `el` matches `selector`.\nCompare with [$.fn.is](http://api.jquery.com/is/).\n\n```js\nvar matches = require('dom101/matches');\n\nmatches(button, ':focus');\n```\n\n### nextUntil\n\n> `nextUntil(el, selector)`\n\nReturns all elements next to element `el`, until it reaches `selector` or\nthe end of the sibling list of `el`.\n\n```js\nnextUntil(li, 'li:last-child')\n```\n\n### on\n\n> `on(el, event, fn)`\n\nAdds an event handler.\n\n```js\nvar on = require('dom101/on');\n\non(el, 'click', function () {\n  ...\n});\n```\n\n### outerHeight\n\n> `outerHeight(el, includeMargin)`\n\nReturns the outer height (height + padding [+margin]) of an element as an\ninteger. Supports IE8+.\n\nIf `includeMargin` is true, then margins will be part of the computation.\n\n```js\nvar outerHeight = require('dom101/outer-height');\nvar height = outerHeight(el);\nvar fullHeight = outerHeight(el, true);  // include margins\n```\n\n### outerWidth\n\n> `outerWidth(el, includeMargin)`\n\nReturns the outer width (width + padding [+margin]) of an element as an\ninteger. Supports IE8+.\n\nIf `includeMargin` is true, then margins will be part of the computation.\n\n```js\nvar outerWidth = require('dom101/outer-width');\nvar width = outerWidth(el);\nvar fullWidth = outerWidth(el);  // include margins\n```\n\n### prepend\n\n> `prepend(el, child)`\n\nPrepends a `child` into a parent `el`. Compare with `$.fn.prepend`.\n\n```js\nvar prepend = require('dom101/prepend');\n\nprepend(el, child);\n```\n\n### querySelectorAll\n\n> `querySelectorAll(query, [element])`\n\nConvenience function to access `document.querySelectorAll`. Unlike the\ndefault version, this always returns an array.\n\nIf a 2nd parameter `element` is given, it only searches for descendants of\nthat element.\n\n```js\nvar each = require('dom101/each');\nvar qsa = require('dom101/query-selector-all');\n\nqsa('.button').each(el => {\n  addClass('el', 'selected');\n};\n```\n\n### querySelector\n\n> `querySelector(query)`\n\nConvenience function to access `document.querySelector`.\n\n```js\nvar q = require('dom101/query-selector');\naddClass(q('#instructions'), 'hidden');\n```\n\n### ready\n\n> `ready(fn)`\n\nExecutes `fn` when the DOM is ready. If the DOM is already ready, the given\ncallback will be called immediately.\n\n```js\nvar ready = require('dom101/ready');\n\nready(function () {\n  ...\n});\n```\n\n### removeClass\n\n> `removeClass(el, className)`\n\nRemoves a classname.\n\n```js\nvar removeClass = require('dom101/remove-class');\n\nel.className = 'selected active';\nremoveClass(el, 'active');\n\nel.className\n=> \"selected\"\n```\n\n### remove\n\n> `remove(el)`\n\nRemoves an element from the DOM.\n\n```js\nvar remove = require('dom101/remove');\n\nremove(el);\n```\n\n### scrollTop\n\n> `scrollTop()`\n\nReturns the scroll top value.\n\n```js\nvar scrollTop = require('dom101/scroll-top');\nalert(scrollTop());\n```\n\n### text\n\n> `text(el, [value])`\n\nSets or gets text. Compare with `$.fn.text`.\n\n```js\nvar text = require('dom101/text');\n\ntext(el, 'Hello');\n\ntext(el)\n=> \"Hello\"\n```\n\n### toggleClass\n\n> `toggleClass(el, className, [value])`\n\nAdds or removes a class name to an element. If `value` is provided,\nthis will add the class if it's `true` or remove if it's `false`.\nCompare with `$.fn.toggleClass`.\n\n```js\nvar toggleClass = require('dom101/toggle-class');\n\n// toggles on or off:\ntoggleClass(el, 'active');\n\n// with a value:\nvar isSelected = true;\ntoggleClass(el, 'selected', isSelected);\n```\n\n### trigger\n\n> `trigger(el, event)`\n\nTriggers an event `event`. Only works for native events.\n\n```js\nvar trigger = require('dom101/trigger');\n\nel = document.querySelector('#button');\ntrigger(el, 'click');\n```\n<!--api:end-->\n\n## Similar projects\n\n * [jQuery] (of course)\n * [youmightnotneedjquery.com] — actually takes a bunch of code from here\n * [101]\n * [bonzo]\n\n## Thanks\n\n**dom101** © 2014+, Rico Sta. Cruz. Released under the [MIT] License.<br>\nAuthored and maintained by Rico Sta. Cruz with help from contributors ([list][contributors]).\n\n> [ricostacruz.com](http://ricostacruz.com) &nbsp;&middot;&nbsp;\n> GitHub [@rstacruz](https://github.com/rstacruz) &nbsp;&middot;&nbsp;\n> Twitter [@rstacruz](https://twitter.com/rstacruz)\n\n[MIT]: http://mit-license.org/\n[contributors]: http://github.com/rstacruz/dom101/contributors\n\n[jQuery]: http://jquery.com\n[browserify]: http://browserify.org\n[101]: https://www.npmjs.org/package/101\n[youmightnotneedjquery.com]: http://youmightnotneedjquery.com/\n[example]: https://github.com/rstacruz/dom101/blob/master/add-class.js\n[bonzo]: https://github.com/ded/bonzo\n","_attachments":{},"homepage":"https://ricostacruz.com/dom101","bugs":{"url":"https://github.com/rstacruz/dom101/issues"},"license":"MIT"}