{"_id":"insane","_rev":"3281713","name":"insane","description":"Lean and configurable whitelist-oriented HTML sanitizer","dist-tags":{"latest":"2.6.2"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"time":{"modified":"2024-05-16T05:30:15.000Z","created":"2015-02-18T22:08:01.573Z","2.6.2":"2016-09-19T19:06:43.690Z","2.6.1":"2016-07-26T14:21:38.431Z","2.6.0":"2016-07-12T15:17:28.704Z","2.5.3":"2016-07-12T14:03:33.418Z","2.5.2":"2016-07-12T13:51:54.276Z","2.5.1":"2016-07-12T13:33:49.017Z","2.5.0":"2016-01-28T03:42:51.177Z","2.4.3":"2015-07-24T22:19:57.352Z","2.4.2":"2015-07-21T00:25:23.467Z","2.4.1":"2015-07-14T19:45:16.334Z","2.4.0":"2015-07-10T20:13:15.740Z","2.3.0":"2015-03-19T14:55:00.204Z","2.2.0":"2015-03-18T18:46:48.371Z","2.1.2":"2015-02-21T04:40:58.893Z","2.1.1":"2015-02-21T02:29:14.424Z","2.1.0":"2015-02-19T21:43:34.042Z","2.0.0":"2015-02-19T15:38:13.635Z","1.0.0":"2015-02-18T22:08:01.573Z"},"users":{},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"https://ponyfoo.com/"},"repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"versions":{"2.6.2":{"name":"insane","version":"2.6.2","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"https://ponyfoo.com/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"2.0.0","he":"0.5.0"},"devDependencies":{"sinon":"1.17.5","tape":"3.5.0"},"gitHead":"641ad8e9e1e9894eddd24806f1d81acb3550dc1d","_id":"insane@2.6.2","_shasum":"c2ab68bb3e006ab451560d1b446917329c0a8120","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"dist":{"shasum":"c2ab68bb3e006ab451560d1b446917329c0a8120","size":40577,"noattachment":false,"key":"/insane/-/insane-2.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.6.2.tgz"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/insane-2.6.2.tgz_1474312001718_0.5073854196816683"},"directories":{},"publish_time":1474312003690,"_hasShrinkwrap":false,"_cnpm_publish_time":1474312003690,"_cnpmcore_publish_time":"2021-12-18T03:59:01.960Z"},"2.6.1":{"name":"insane","version":"2.6.1","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"https://ponyfoo.com/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"2.0.0","he":"0.5.0"},"devDependencies":{"sinon":"1.17.5","tape":"3.5.0"},"gitHead":"9f2b027842de9fb9b9d432ab9b6a360b56f84606","_id":"insane@2.6.1","_shasum":"c7dcae7b51c20346883b71078fad6ce0483c198f","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.4.7","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"dist":{"shasum":"c7dcae7b51c20346883b71078fad6ce0483c198f","size":40569,"noattachment":false,"key":"/insane/-/insane-2.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.6.1.tgz"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/insane-2.6.1.tgz_1469542894509_0.7334649157710373"},"directories":{},"publish_time":1469542898431,"_hasShrinkwrap":false,"_cnpm_publish_time":1469542898431,"_cnpmcore_publish_time":"2021-12-18T03:59:02.321Z"},"2.6.0":{"name":"insane","version":"2.6.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"9ee0a03d05cfce6c68f15a3a7e264e36a8b37e22","_id":"insane@2.6.0","_shasum":"9653347a859cd737408575078f087ae8c21ed582","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.1","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"9653347a859cd737408575078f087ae8c21ed582","size":40598,"noattachment":false,"key":"/insane/-/insane-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.6.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/insane-2.6.0.tgz_1468336645399_0.25612559192813933"},"directories":{},"publish_time":1468336648704,"_hasShrinkwrap":false,"_cnpm_publish_time":1468336648704,"_cnpmcore_publish_time":"2021-12-18T03:59:02.563Z"},"2.5.3":{"name":"insane","version":"2.5.3","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"4206fb1da690908a9dbe558639fdd4adb086d461","_id":"insane@2.5.3","_shasum":"3d1ac40a1e26aee8bf66df66781ee6eaf98b5baf","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.1","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"3d1ac40a1e26aee8bf66df66781ee6eaf98b5baf","size":40966,"noattachment":false,"key":"/insane/-/insane-2.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.5.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/insane-2.5.3.tgz_1468332210986_0.16253280942328274"},"directories":{},"publish_time":1468332213418,"_hasShrinkwrap":false,"_cnpm_publish_time":1468332213418,"_cnpmcore_publish_time":"2021-12-18T03:59:02.825Z"},"2.5.2":{"name":"insane","version":"2.5.2","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"e317b6e6b7ed8838d99370e0dec2c09b0cc10799","_id":"insane@2.5.2","_shasum":"c543213826383766512d8047eda7ebc4caf5e9f8","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.1","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"c543213826383766512d8047eda7ebc4caf5e9f8","size":40926,"noattachment":false,"key":"/insane/-/insane-2.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.5.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/insane-2.5.2.tgz_1468331510959_0.8806640603579581"},"directories":{},"publish_time":1468331514276,"_hasShrinkwrap":false,"_cnpm_publish_time":1468331514276,"_cnpmcore_publish_time":"2021-12-18T03:59:03.113Z"},"2.5.1":{"name":"insane","version":"2.5.1","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"14f4a0796b49c08a2781305e501fb1c2e6987d40","_id":"insane@2.5.1","_shasum":"febd9ba47b51958a45ca4d83295482169442a161","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.1","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"febd9ba47b51958a45ca4d83295482169442a161","size":40815,"noattachment":false,"key":"/insane/-/insane-2.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.5.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/insane-2.5.1.tgz_1468330425650_0.4433302313555032"},"directories":{},"publish_time":1468330429017,"_hasShrinkwrap":false,"_cnpm_publish_time":1468330429017,"_cnpmcore_publish_time":"2021-12-18T03:59:03.430Z"},"2.5.0":{"name":"insane","version":"2.5.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"1076360b0702d5bb2a714bcaf8627a8152939256","_id":"insane@2.5.0","_shasum":"3252baec85c53b108cdf731e7962b7ce9c5cff1f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"3252baec85c53b108cdf731e7962b7ce9c5cff1f","size":40628,"noattachment":false,"key":"/insane/-/insane-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.5.0.tgz"},"directories":{},"publish_time":1453952571177,"_hasShrinkwrap":false,"_cnpm_publish_time":1453952571177,"_cnpmcore_publish_time":"2021-12-18T03:59:03.719Z"},"2.4.3":{"name":"insane","version":"2.4.3","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"24b7aef6e09d371b4a242a8317682655a3efa80a","_id":"insane@2.4.3","_shasum":"b9da52c0872f2cab6ecc84d10d673400a1bb5a1e","_from":".","_npmVersion":"2.13.1","_nodeVersion":"2.3.3","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"b9da52c0872f2cab6ecc84d10d673400a1bb5a1e","size":40491,"noattachment":false,"key":"/insane/-/insane-2.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.4.3.tgz"},"directories":{},"publish_time":1437776397352,"_hasShrinkwrap":false,"_cnpm_publish_time":1437776397352,"_cnpmcore_publish_time":"2021-12-18T03:59:03.979Z"},"2.4.2":{"name":"insane","version":"2.4.2","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"1ef2811d33e83451935de53acb344ec770e69651","_id":"insane@2.4.2","_shasum":"227bb3b8112d182d3337faa2b13f79707caf67a0","_from":".","_npmVersion":"2.13.1","_nodeVersion":"2.3.3","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"227bb3b8112d182d3337faa2b13f79707caf67a0","size":40412,"noattachment":false,"key":"/insane/-/insane-2.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.4.2.tgz"},"directories":{},"publish_time":1437438323467,"_hasShrinkwrap":false,"_cnpm_publish_time":1437438323467,"_cnpmcore_publish_time":"2021-12-18T03:59:04.259Z"},"2.4.1":{"name":"insane","version":"2.4.1","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"3eb23c65c21cd7b901523513ee30c0c109102ab0","_id":"insane@2.4.1","_shasum":"418c9802ebc1230b3cbf60edded6a73b85cf52ae","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.3","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"418c9802ebc1230b3cbf60edded6a73b85cf52ae","size":40360,"noattachment":false,"key":"/insane/-/insane-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.4.1.tgz"},"directories":{},"publish_time":1436903116334,"_hasShrinkwrap":false,"_cnpm_publish_time":1436903116334,"_cnpmcore_publish_time":"2021-12-18T03:59:04.512Z"},"2.4.0":{"name":"insane","version":"2.4.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"git+https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"75522342635e78d1f4974a6e0fadf4542ab6d8bf","_id":"insane@2.4.0","_shasum":"2d74126c8c2e2569fd842257081457f64bac7372","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.3","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"2d74126c8c2e2569fd842257081457f64bac7372","size":40304,"noattachment":false,"key":"/insane/-/insane-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.4.0.tgz"},"directories":{},"publish_time":1436559195740,"_hasShrinkwrap":false,"_cnpm_publish_time":1436559195740,"_cnpmcore_publish_time":"2021-12-18T03:59:04.758Z"},"2.3.0":{"name":"insane","version":"2.3.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"0792aa70eab1903656e74687dd740d5a694cd990","_id":"insane@2.3.0","_shasum":"0d23b99e2c4db603dca2a78ce81d1e8301b4536d","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"0d23b99e2c4db603dca2a78ce81d1e8301b4536d","size":40190,"noattachment":false,"key":"/insane/-/insane-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.3.0.tgz"},"directories":{},"publish_time":1426776900204,"_hasShrinkwrap":false,"_cnpm_publish_time":1426776900204,"_cnpmcore_publish_time":"2021-12-18T03:59:04.991Z"},"2.2.0":{"name":"insane","version":"2.2.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"809d32b0bacd43d4e3100736299ebdcc3688b4fe","_id":"insane@2.2.0","_shasum":"463650e598829967b0c57d885e5334c9e3ae21d0","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"463650e598829967b0c57d885e5334c9e3ae21d0","size":40170,"noattachment":false,"key":"/insane/-/insane-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.2.0.tgz"},"directories":{},"publish_time":1426704408371,"_hasShrinkwrap":false,"_cnpm_publish_time":1426704408371,"_cnpmcore_publish_time":"2021-12-18T03:59:05.226Z"},"2.1.2":{"name":"insane","version":"2.1.2","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^2.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"b7551b47e311989ece02d7e08f74ef11ecac4254","_id":"insane@2.1.2","_shasum":"5eeb06d8d194adcf0c28f5899d87572d094cb51f","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"5eeb06d8d194adcf0c28f5899d87572d094cb51f","size":39550,"noattachment":false,"key":"/insane/-/insane-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.1.2.tgz"},"directories":{},"publish_time":1424493658893,"_hasShrinkwrap":false,"_cnpm_publish_time":1424493658893,"_cnpmcore_publish_time":"2021-12-18T03:59:05.418Z"},"2.1.1":{"name":"insane","version":"2.1.1","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"assignment":"^1.0.0","he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"54ce584631da7ff8918b050dc7f2ede2f8409f7f","_id":"insane@2.1.1","_shasum":"f7abbfeaffec634bd0e2a472b5a7cb3ac82d277f","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"f7abbfeaffec634bd0e2a472b5a7cb3ac82d277f","size":39501,"noattachment":false,"key":"/insane/-/insane-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.1.1.tgz"},"directories":{},"publish_time":1424485754424,"_hasShrinkwrap":false,"_cnpm_publish_time":1424485754424,"_cnpmcore_publish_time":"2021-12-18T03:59:05.652Z"},"2.1.0":{"name":"insane","version":"2.1.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"4ef0686ee46b122701ce9b3cf70165590831f611","_id":"insane@2.1.0","_shasum":"23b5e473e1a3db17e9692b61258197a2051919eb","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"23b5e473e1a3db17e9692b61258197a2051919eb","size":39957,"noattachment":false,"key":"/insane/-/insane-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.1.0.tgz"},"directories":{},"publish_time":1424382214042,"_hasShrinkwrap":false,"_cnpm_publish_time":1424382214042,"_cnpmcore_publish_time":"2021-12-18T03:59:05.925Z"},"2.0.0":{"name":"insane","version":"2.0.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"701243aa1c7010ac303b2480905190390864d059","_id":"insane@2.0.0","_shasum":"b083883e54040fdb3384a36933b97bccebb5cd16","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"b083883e54040fdb3384a36933b97bccebb5cd16","size":39895,"noattachment":false,"key":"/insane/-/insane-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-2.0.0.tgz"},"directories":{},"publish_time":1424360293635,"_hasShrinkwrap":false,"_cnpm_publish_time":1424360293635,"_cnpmcore_publish_time":"2021-12-18T03:59:06.202Z"},"1.0.0":{"name":"insane","version":"1.0.0","description":"Lean and configurable whitelist-oriented HTML sanitizer","repository":{"type":"git","url":"https://github.com/bevacqua/insane.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"homepage":"https://github.com/bevacqua/insane","main":"insane.js","browser":{"he":"./she.js"},"scripts":{"test":"tape test/**/*.js"},"dependencies":{"he":"^0.5.0"},"devDependencies":{"sinon":"^1.12.2","tape":"^3.5.0"},"gitHead":"292bd6a54d0b3294713b15b22eede486e7d49a1b","_id":"insane@1.0.0","_shasum":"e8d419af8ab671b8f81d2b0b653157199d867657","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.26","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"e8d419af8ab671b8f81d2b0b653157199d867657","size":6788,"noattachment":false,"key":"/insane/-/insane-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/insane/download/insane-1.0.0.tgz"},"directories":{},"publish_time":1424297281573,"_hasShrinkwrap":false,"_cnpm_publish_time":1424297281573,"_cnpmcore_publish_time":"2021-12-18T03:59:06.462Z"}},"readme":"# insane\n\n> Lean and configurable whitelist-oriented HTML sanitizer\n\nWorks well in browsers, as its footprint size is very small _(around **~2kb** gzipped)_. API inspired by [`sanitize-html`][1] _(which is around **100kb** gzipped)_.\n\n<sub>**You would be insane not to use this!**</sub>\n\n# Install\n\n```shell\nnpm install insane --save\n```\n\n# Usage\n\n```js\ninsane('<div>foo<span>bar</span></div>', { allowedTags: ['div'] })\n// <- '<div>foo</div>'\n```\n\nContrary to similar sanitizers, `insane` drops the whole tree of descendants for elements that aren't allowed tags.\n\n# API\n\n# `insane(html, options?, strict?)`\n\n- `html` can be an arbitrary HTML string\n- `options` are detailed below\n- `strict` means that `options` won't be based off of [insane.defaults](#defaults) if set to `true`\n\nThe parser takes into account that some elements can be self-closing. For safety reasons the sanitizer will only accept a valid URL for `background`, `base`, `cite`, `href`, `longdesc`, `src`, and `usemap` elements. **\"Valid URL\"** means that it begins with either `#`, `/`, or any of `options.allowedSchemes` _(followed by `:`)_.\n\n## `options`\n\n[Sensible defaults](#defaults) are provided. You can override specific options as needed.\n\n#### `allowedSchemes`\n\nDefaults to `['http', 'https', 'mailto']`.\n\n#### `allowedTags`\n\nAn array of tags that you'll allow in the resulting HTML.\n\n###### Example\n\n> Only allow spans, discarding the rest of elements.\n\n```js\ninsane('<div>foo</div><span>bar</span>', {\n  allowedTags: ['span']\n});\n// <- '<span>bar</span>'\n```\n\n#### `allowedAttributes`\n\nAn object describing the attributes you'll allow for each individual tag name.\n\n###### Example\n\n> Only allow spans, and only allow those spans to have an `id` _(discarding the rest of their attributes)_.\n\n```js\ninsane('<span id=\"bar\" class=\"super\">bar</span>', {\n  allowedTags: ['span'],\n  allowedAttributes: { span: ['id'] }\n});\n// <- '<span id=\"bar\">bar</span>'\n```\n\n#### `allowedClasses`\n\nIf `'class'` is listed as an allowed attribute, every single class will be allowed. If you don't list `'class'` as an allowed attribute, you can provide a class whitelist per tag name.\n\n###### Example\n\n> Only allow spans to have `super` or `bad` class names, discarding the rest of them.\n\n```js\ninsane('<span class=\"super mean and bad\">bar</span>', {\n  allowedTags: ['span'],\n  allowedClasses: { span: ['super', 'bad'] }\n});\n// <- '<span class=\"super bad\">bar</span>'\n```\n\n#### `filter`\n\nTakes a `function(token)` that allows you to do additional validation beyond exact tag name and attribute matching. The `token` object passed to your filter contains the following properties.\n\n- `tag` is the lowercase tag name of the element\n- `attrs` is an object containing _every_ attribute in the element, **including** those that may not be in the whitelist\n\nIf you return a falsy value the element and all of its descendants will not be included in the output. Note that you are allowed to change the `attrs`, and even add new ones, transforming the output.\n\n###### Example\n\n> Require that `<span>` elements have an `aria-label` value.\n\n```js\nfunction filter (token) {\n  return token.tag !== 'span' || token.attrs['aria-label'];\n}\ninsane('<span aria-label=\"a foo\">foo</span><span>bar</span>', {\n  allowedTags: ['span'],\n  allowedAttributes: { span: ['aria-label'] },\n  filter: filter\n});\n// <- '<span aria-label=\"a foo\">foo</span>'\n```\n\n#### `transformText`\n\nTakes a `function(text)` that allows you to modify text content in HTML elements. Runs for every piece of text content. The returned value is used instead of the original text contents.\n\n## Defaults\n\nThe default configuration is used if you don't provide any. This object is available at `insane.defaults`. You are free to manipulate the defaults themselves.\n\n```json\n{\n  \"allowedAttributes\": {\n    \"a\": [\"href\", \"name\", \"target\"],\n    \"iframe\": [\"allowfullscreen\", \"frameborder\", \"src\"],\n    \"img\": [\"src\"]\n  },\n  \"allowedClasses\": {},\n  \"allowedSchemes\": [\"http\", \"https\", \"mailto\"],\n  \"allowedTags\": [\n    \"a\", \"article\", \"b\", \"blockquote\", \"br\", \"caption\", \"code\", \"del\", \"details\", \"div\", \"em\",\n    \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"i\", \"img\", \"ins\", \"kbd\", \"li\", \"main\", \"ol\",\n    \"p\", \"pre\", \"section\", \"span\", \"strike\", \"strong\", \"sub\", \"summary\", \"sup\", \"table\",\n    \"tbody\", \"td\", \"th\", \"thead\", \"tr\", \"u\", \"ul\"\n  ],\n  \"filter\": null,\n  \"transformText\": null\n}\n```\n\n# License\n\nMIT\n\n[1]: https://github.com/punkave/sanitize-html\n","_attachments":{},"homepage":"https://github.com/bevacqua/insane","bugs":{"url":"https://github.com/bevacqua/insane/issues"},"license":"MIT"}