{"_id":"cssfilter","_rev":"37615","name":"cssfilter","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","dist-tags":{"latest":"0.0.10"},"maintainers":[{"name":"leizongmin","email":""}],"time":{"modified":"2021-06-03T10:10:32.000Z","created":"2015-05-02T17:22:16.115Z","0.0.10":"2017-02-01T02:51:18.200Z","0.0.9":"2016-12-20T01:09:53.704Z","0.0.8":"2016-10-12T06:14:11.281Z","0.0.7":"2016-04-24T16:21:21.710Z","0.0.6":"2015-12-23T04:40:18.958Z","0.0.5":"2015-05-24T15:34:29.300Z","0.0.4":"2015-05-05T16:43:38.476Z","0.0.3":"2015-05-05T14:48:36.521Z","0.0.2":"2015-05-05T14:13:18.519Z","0.0.1":"2015-05-05T14:04:29.640Z","0.0.0":"2015-05-02T17:22:16.115Z"},"users":{},"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/leizongmin/js-css-filter.git"},"versions":{"0.0.10":{"name":"cssfilter","version":"0.0.10","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"lib/index.js","files":["lib"],"scripts":{"test":"istanbul cover _mocha --report lcovonly -- -t 5000 -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","build":"./build","prepublish":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^13.1.1","coveralls":"^2.11.14","istanbul":"^0.4.5","mocha":"^3.1.2","should":"^11.1.1","uglify-js":"^2.7.4"},"gitHead":"74d127d39dbfb375319badd112f183effaba7842","_id":"cssfilter@0.0.10","_shasum":"c6d2672632a2e5c83e013e6864a42ce8defd20ae","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"dist":{"shasum":"c6d2672632a2e5c83e013e6864a42ce8defd20ae","size":7453,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.10.tgz"},"maintainers":[{"name":"leizongmin","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cssfilter-0.0.10.tgz_1485917477966_0.8402797318994999"},"directories":{},"publish_time":1485917478200,"_cnpm_publish_time":1485917478200,"_hasShrinkwrap":false},"0.0.9":{"name":"cssfilter","version":"0.0.9","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"lib/index.js","files":["lib"],"scripts":{"test":"istanbul cover _mocha --report lcovonly -- -t 5000 -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","build":"./build","prepublish":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^13.1.1","coveralls":"^2.11.14","istanbul":"^0.4.5","mocha":"^3.1.2","should":"^11.1.1","uglify-js":"^2.7.4"},"gitHead":"cd0e21b234f86c3a8b4d087b01648ce34916321d","_id":"cssfilter@0.0.9","_shasum":"8f5ceb3aabd768db539da4582b2152d63ef7715e","_from":".","_npmVersion":"4.0.3","_nodeVersion":"6.9.2","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"dist":{"shasum":"8f5ceb3aabd768db539da4582b2152d63ef7715e","size":7299,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.9.tgz"},"maintainers":[{"name":"leizongmin","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cssfilter-0.0.9.tgz_1482196191693_0.7469267225824296"},"directories":{},"publish_time":1482196193704,"_cnpm_publish_time":1482196193704,"_hasShrinkwrap":false},"0.0.8":{"name":"cssfilter","version":"0.0.8","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"lib/index.js","files":["lib"],"scripts":{"test":"istanbul cover _mocha --report lcovonly -- -t 5000 -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","build":"./build","prepublish":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^13.1.0","coveralls":"^2.11.14","istanbul":"^0.4.5","mocha":"^3.1.2","should":"^11.1.1","uglify-js":"^2.4.20"},"gitHead":"0c4bc291993e22d33d3d46ae0bc6b5441a68b8ea","_id":"cssfilter@0.0.8","_shasum":"6564caccba8a76dd9b4b920668b9fb7fda50e54c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"dist":{"shasum":"6564caccba8a76dd9b4b920668b9fb7fda50e54c","size":7217,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.8.tgz"},"maintainers":[{"name":"leizongmin","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cssfilter-0.0.8.tgz_1476252849541_0.4133032711688429"},"directories":{},"publish_time":1476252851281,"_cnpm_publish_time":1476252851281,"_hasShrinkwrap":false},"0.0.7":{"name":"cssfilter","version":"0.0.7","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"lib/index.js","scripts":{"test":"mocha --require blanket -R html-cov > coverage.html -t 5000 && mocha -t 5000 && testling -x open"},"repository":{"type":"git","url":"git+https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","testling":"^1.7.1","uglify-js":"^2.4.20"},"testling":{"preprocess":"./build","harness":"mocha-bdd","files":"test/*.js","browsers":["ie/6..latest","firefox/latest","chrome/latest","safari/5..latest","opera/11","opera/next"]},"gitHead":"1a0cf3c568bab035da5e73f888902b0183744d21","_id":"cssfilter@0.0.7","_shasum":"8f5bfc0d0f255e3b3c2ba1bfd536abd294ad829b","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"dist":{"shasum":"8f5bfc0d0f255e3b3c2ba1bfd536abd294ad829b","size":14859,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.7.tgz"},"maintainers":[{"name":"leizongmin","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cssfilter-0.0.7.tgz_1461514879817_0.2984790224581957"},"directories":{},"publish_time":1461514881710,"_cnpm_publish_time":1461514881710,"_hasShrinkwrap":false},"0.0.6":{"name":"cssfilter","version":"0.0.6","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"lib/index.js","scripts":{"test":"mocha --require blanket -R html-cov > coverage.html -t 5000 && mocha -t 5000 && testling -x open"},"repository":{"type":"git","url":"git+https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","testling":"^1.7.1","uglify-js":"^2.4.20"},"testling":{"preprocess":"./build","harness":"mocha-bdd","files":"test/*.js","browsers":["ie/6..latest","firefox/latest","chrome/latest","safari/5..latest","opera/11","opera/next"]},"gitHead":"019f3677946627e633a4d78824378728a6ecaf69","_id":"cssfilter@0.0.6","_shasum":"40f0f90e226c4fede781b65c34efa66ddfc24cba","_from":".","_npmVersion":"3.5.1","_nodeVersion":"4.2.3","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"dist":{"shasum":"40f0f90e226c4fede781b65c34efa66ddfc24cba","size":14934,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.6.tgz"},"maintainers":[{"name":"leizongmin","email":""}],"directories":{},"publish_time":1450845618958,"_cnpm_publish_time":1450845618958,"_hasShrinkwrap":false},"0.0.5":{"name":"cssfilter","version":"0.0.5","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"lib/index.js","scripts":{"test":"mocha --require blanket -R html-cov > coverage.html -t 5000 && mocha -t 5000 && testling -x open"},"repository":{"type":"git","url":"https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","testling":"^1.7.1","uglify-js":"^2.4.20"},"testling":{"preprocess":"./build","harness":"mocha-bdd","files":"test/*.js","browsers":["ie/6..latest","firefox/latest","chrome/latest","safari/5..latest","opera/11","opera/next"]},"gitHead":"73ea5d29062cf223c13eb6348f5396883cfd5d3e","_id":"cssfilter@0.0.5","_shasum":"db921dab8ceb53d0e82f4ee5996264c15df3315f","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.2","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"dist":{"shasum":"db921dab8ceb53d0e82f4ee5996264c15df3315f","size":14939,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.5.tgz"},"maintainers":[{"name":"leizongmin","email":""}],"directories":{},"publish_time":1432481669300,"_cnpm_publish_time":1432481669300,"_hasShrinkwrap":false},"0.0.4":{"name":"cssfilter","version":"0.0.4","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000"},"repository":{"type":"git","url":"https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","uglify-js":"^2.4.20"},"gitHead":"95924f153661f1581ac65d5a6db4c6a6a36f62f7","_id":"cssfilter@0.0.4","_shasum":"b6a8b7cd7a43aefe63670827fe813efd7958fd24","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"maintainers":[{"name":"leizongmin","email":""}],"dist":{"shasum":"b6a8b7cd7a43aefe63670827fe813efd7958fd24","size":7916,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.4.tgz"},"directories":{},"publish_time":1430844218476,"_cnpm_publish_time":1430844218476,"_hasShrinkwrap":false},"0.0.3":{"name":"cssfilter","version":"0.0.3","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000"},"repository":{"type":"git","url":"https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","uglify-js":"^2.4.20"},"gitHead":"22f6cbea7086905ec933bb08689687cb37c5bf5d","_id":"cssfilter@0.0.3","_shasum":"5c8837bae2d2bc25c19f1af1ecd0252171b3dc27","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"maintainers":[{"name":"leizongmin","email":""}],"dist":{"shasum":"5c8837bae2d2bc25c19f1af1ecd0252171b3dc27","size":7905,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.3.tgz"},"directories":{},"publish_time":1430837316521,"_cnpm_publish_time":1430837316521,"_hasShrinkwrap":false},"0.0.2":{"name":"cssfilter","version":"0.0.2","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000"},"repository":{"type":"git","url":"https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","uglify-js":"^2.4.20"},"gitHead":"0af7e34ac3e95ffacd9f1ecc1a9bd639bce24af3","_id":"cssfilter@0.0.2","_shasum":"aa9a101e69e0511777b2a91e3ee69a2c73f4bed1","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"maintainers":[{"name":"leizongmin","email":""}],"dist":{"shasum":"aa9a101e69e0511777b2a91e3ee69a2c73f4bed1","size":7655,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.2.tgz"},"directories":{},"publish_time":1430835198519,"_cnpm_publish_time":1430835198519,"_hasShrinkwrap":false},"0.0.1":{"name":"cssfilter","version":"0.0.1","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000"},"repository":{"type":"git","url":"https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","should":"^6.0.1","uglify-js":"^2.4.20"},"gitHead":"2a9dbffba72d42459bd7050e53b60c59ccb894c7","_id":"cssfilter@0.0.1","_shasum":"42a3c838e4379515784db4cd72ae2b06c31e1b93","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"maintainers":[{"name":"leizongmin","email":""}],"dist":{"shasum":"42a3c838e4379515784db4cd72ae2b06c31e1b93","size":7548,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.1.tgz"},"directories":{},"publish_time":1430834669640,"_cnpm_publish_time":1430834669640,"_hasShrinkwrap":false},"0.0.0":{"name":"cssfilter","version":"0.0.0","description":"Sanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS","main":"index.js","scripts":{"test":"./node_modules/mocha/bin/mocha --require blanket -R html-cov > coverage.html -t 5000"},"repository":{"type":"git","url":"https://github.com/leizongmin/js-css-filter.git"},"keywords":["sanitization","xss","sanitize","sanitisation","input","security","escape","encode","filter","validator","html","css","injection","whitelist"],"author":{"name":"Zongmin Lei","email":"leizongmin@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"homepage":"https://github.com/leizongmin/js-css-filter","devDependencies":{"blanket":"^1.1.6","browserify":"^10.0.0","mocha":"^2.2.4","uglify-js":"^2.4.20"},"gitHead":"8c2b44a754ca856c32efef6411fcd6defe8b673e","_id":"cssfilter@0.0.0","_shasum":"3bf11ec54676aaf2b4c156a27d07665f265570bc","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.0","_npmUser":{"name":"leizongmin","email":"leizongmin@gmail.com"},"maintainers":[{"name":"leizongmin","email":""}],"dist":{"shasum":"3bf11ec54676aaf2b4c156a27d07665f265570bc","size":1694,"noattachment":false,"key":"/cssfilter/-/cssfilter-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cssfilter/download/cssfilter-0.0.0.tgz"},"directories":{},"publish_time":1430587336115,"_cnpm_publish_time":1430587336115,"_hasShrinkwrap":false}},"readme":"[![NPM version](https://badge.fury.io/js/cssfilter.png)](http://badge.fury.io/js/xss)\n[![Build Status](https://secure.travis-ci.org/leizongmin/js-css-filter.png?branch=master)](http://travis-ci.org/leizongmin/js-css-filter)\n[![Dependencies Status](https://david-dm.org/leizongmin/js-css-filter.png)](https://david-dm.org/leizongmin/js-css-filter)\n[![coveralls-image](https://img.shields.io/coveralls/leizongmin/js-css-filter.svg?style=flat-square)](https://coveralls.io/r/leizongmin/js-css-filter?branch=master)\n\n# cssfilter\nSanitize untrusted CSS with a configuration specified by a Whitelist. 根据白名单过滤CSS\n\n\n## 安装\n\n```bash\n$ npm install cssfilter --save\n```\n\n\n## 使用方法\n\n```javascript\nvar cssfilter = require('cssfilter');\nvar css = cssfilter('position:fixed; /* this is comments */ width:100px; height:100px; background:#aaa;');\nconsole.log(css);\n// 输出：width:100px; height:100px; background:#aaa;\n// 因为position不在白名单允许范围\n```\n\n或者：\n\n```javascript\noptions = {\n  // 白名单，可选\n  whiteList: {\n    a: true,                 // true表示允许\n    b: /^fixed|relative$/,   // 正则test()返回true表示允许\n    c: function (value) {\n      // 返回true表示允许\n    },\n    d: false                 // 除以上三个以外，所有值均表示不允许\n  },\n  // 当匹配到一个在白名单中的属性时\n  onAttr: function (name, value, options) {\n    // name为属性名\n    // value为属性值\n    // 返回字符串表示覆盖此段CSS\n    // 不返回任何值表示使用默认生成方法，即 name:value\n  },\n  // 当匹配到一个不在白名单中的属性时\n  onIgnoreAttr: function (name, value, options) {\n    // name为属性名\n    // value为属性值\n    // 返回字符串表示覆盖此段CSS\n    // 不返回任何值表示使用默认生成方法，即将此段CSS去掉\n  }\n};\nmycss = new cssfilter.FilterCSS(options);\n// then apply mycss.process()\ncss = mycss.process('position:fixed; width:100px; height:100px; background:#aaa;');\nconsole.log(css);\n```\n\n\n## License\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2015-2016 Zongmin Lei(雷宗民) <leizongmin@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","_attachments":{},"homepage":"https://github.com/leizongmin/js-css-filter","bugs":{"url":"https://github.com/leizongmin/js-css-filter/issues"},"license":"MIT"}