{"_id":"clean-css-promise","_rev":"16-cfba37c0ff27b2bcbd2c419dc426185e","name":"clean-css-promise","description":"clean-css with the default Promise interface and some improvements","dist-tags":{"latest":"3.0.0","next":"3.0.0-2"},"versions":{"0.0.1":{"name":"clean-css-promise","version":"0.0.1","description":"Promises/A+ version of clean-css","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node index.js test.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js","coverage":"node --strong_mode node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","promisified","then","thenable"],"dependencies":{"array-to-error":"^1.0.0","clean-css":"^3.4.5"},"devDependencies":{"@shinnn/eslint-config-node":"^1.0.1","eslint":"^1.6.0","istanbul":"^0.3.22","istanbul-coveralls":"^1.0.3","tape":"^4.2.1"},"gitHead":"a3afa9e77b1b31832f02b193c2287e6f0ef0f40b","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@0.0.1","_shasum":"e9765bbb5cbbde12146101d4df94fa37d76d03a0","_from":".","_npmVersion":"3.3.4","_nodeVersion":"4.1.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"e9765bbb5cbbde12146101d4df94fa37d76d03a0","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-0.0.1.tgz","integrity":"sha512-XrAPkVX8lEn+xNJLgFclTI/T19Cg4wQrGBPlmtoMugvLL71TNFxy6nSk/o7INrja3fvxp5T+Vy9TIYqVxKGUTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGNz43jE8BbuYsgB0q/3pd32rt/aJdr6CZ2LxY34iwmwIgZAB1so5CE7cAzabgi6NhWCiQaJ8UGBKB4++ULu4S46g="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{}},"1.0.0":{"name":"clean-css-promise","version":"1.0.0","description":"Promises/A+ version of clean-css","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node index.js test.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js","coverage":"node --strong_mode node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","promisified","then","thenable"],"dependencies":{"array-to-error":"^1.0.0","clean-css":"^3.4.5"},"devDependencies":{"@shinnn/eslint-config-node":"^1.0.1","eslint":"^1.6.0","istanbul":"^0.3.22","istanbul-coveralls":"^1.0.3","tape":"^4.2.1"},"gitHead":"b504f8dcc183723e5fce4c97d66ce2bd92db34fc","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@1.0.0","_shasum":"6e7877e53a18050480da212dc1c21dafb65783e9","_from":".","_npmVersion":"3.3.4","_nodeVersion":"4.1.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"6e7877e53a18050480da212dc1c21dafb65783e9","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-1.0.0.tgz","integrity":"sha512-2CMjidgGdxo01zTZ+W+ge4B3SFEE7zPBxHNW904c/DxI2CQvyNlTHE6jsvKDvNKOGHQS69tEZOi2N/Q62ETT8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfR0UJjN1lMEojUlUdAAk36Kdy/vCE7jP6VXgkS8dbkgIgKDgtSvKAkn4j/vAxfWYgXjQyS92lmxN3fScMx7mHAFI="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{}},"0.0.0":{"name":"clean-css-promise","version":"0.0.0","description":"Promises/A+ version of clean-css","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node index.js test.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js","coverage":"node --strong_mode node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","promisified","then","thenable"],"dependencies":{"array-to-error":"^1.0.0","clean-css":"^3.4.5"},"devDependencies":{"@shinnn/eslint-config-node":"^1.0.1","eslint":"^1.6.0","istanbul":"^0.3.22","istanbul-coveralls":"^1.0.3","tape":"^4.2.1"},"gitHead":"b504f8dcc183723e5fce4c97d66ce2bd92db34fc","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@0.0.0","_shasum":"d67de7fbacf7fe12dcafc31c5f99740a401d375e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"d67de7fbacf7fe12dcafc31c5f99740a401d375e","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-0.0.0.tgz","integrity":"sha512-Kn41NyvqdhGg5oDaNZlmsuKQKkoppJLNWSX1buEEZRww2SFhuV5mlNPYKLZ0jBs4ps1fd6d1+gMtcQDvWrP2lA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0ZgMMCW3Y+iN1RfY/KkzimAo2zlkomUI8m0C/k1+DSAiEA+PcJtBn7zOasOBALECy25feD6Tcl5lfNIC4f6gG0VUE="}]},"directories":{}},"0.1.0":{"name":"clean-css-promise","version":"0.1.0","description":"Promises/A+ version of clean-css","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node src.js test.js && babel --presets es2015 src.js --out-file index.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js","coverage":"node --strong_mode node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","promisified","then","thenable"],"dependencies":{"array-to-error":"^1.0.0","clean-css":"^3.4.5"},"devDependencies":{"@shinnn/eslint-config-node":"^1.0.1","babel-cli":"^6.2.0","babel-preset-es2015":"^6.1.18","eslint":"^1.6.0","istanbul":"^0.3.22","istanbul-coveralls":"^1.0.3","tape":"^4.2.1"},"gitHead":"b6ef15e33967ea7828633d39ef3da57b5d1d64cb","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@0.1.0","_shasum":"e29128bc4d0a586c3613512d840fc19f70276200","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"e29128bc4d0a586c3613512d840fc19f70276200","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-0.1.0.tgz","integrity":"sha512-yaGEbdAqbhaJVIP47PKWNuZJzT3+ArDUttw4KDWrBjNs3cV3Q/1n1198SE8biPexYWxT+RnWom6NNbGChbv4cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH8sr2WDhKAMeR6IUAP7pHZ8g0cmgoh0z7gc9EZsEvYQIhAIsKB5w4uPEYLMcscO2v0hX7EJuU6OOte/mc/hcF4TL0"}]},"directories":{}},"0.1.1":{"name":"clean-css-promise","version":"0.1.1","description":"Promises/A+ version of clean-css","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node src.js test.js && babel --presets es2015 src.js --out-file index.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js","coverage":"node --strong_mode node_modules/.bin/istanbul cover test.js","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","promisified","then","thenable"],"dependencies":{"array-to-error":"^1.0.0","clean-css":"^3.4.5","pinkie-promise":"^2.0.0"},"devDependencies":{"@shinnn/eslint-config-node":"^1.0.1","babel-cli":"^6.2.0","babel-preset-es2015":"^6.1.18","eslint":"^1.6.0","istanbul":"^0.3.22","istanbul-coveralls":"^1.0.3","tape":"^4.2.1"},"gitHead":"373e0b095b12a11043701b2e8bb0e202e1cc3427","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@0.1.1","_shasum":"43f3d2c8dfcb2bf071481252cd9b76433c08eecb","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"43f3d2c8dfcb2bf071481252cd9b76433c08eecb","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-0.1.1.tgz","integrity":"sha512-tzWkANXMD70ETa/wAu2TXAAxYWS0ZjVUFM2dVik8RQBoAbGMFJv4iVluz3RpcoEbo++fX4RV/BXfgGoOjp8o3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvPfeHk7bCyCA0sqwMA2OM3nQQQoilxgqvRPCSRoJquQIhAI6HhgwvpPCWrR3SqRuwla19d4xwIXAlxvTElJgHk1Bt"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{}},"1.0.1":{"name":"clean-css-promise","version":"1.0.1","description":"Promises/A+ version of clean-css","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --config @shinnn/node index.js test.js","test":"node --strong_mode --throw-deprecation --track-heap-objects test.js","coverage":"node --strong_mode --throw-deprecation --track-heap-objects node_modules/.bin/istanbul cover test.js"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","promisified","then","thenable"],"dependencies":{"array-to-error":"^1.0.0","clean-css":"^3.4.8"},"devDependencies":{"@shinnn/eslint-config-node":"^1.0.1","eslint":"^1.10.3","istanbul":"^0.4.1","tape":"^4.2.2"},"gitHead":"db7f989e87de6d0bf0f866ff7a5a7fd417077079","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@1.0.1","_shasum":"74c7ee7644cbb89e57a70b17df82469f069d2869","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"74c7ee7644cbb89e57a70b17df82469f069d2869","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-1.0.1.tgz","integrity":"sha512-IIv1VVPR74dPRZhl8kntc0IlfiiiKtp65HA3e5Yny1Zq1RA0xv7MjQ/5WH0J4dOItIMDECY57YwDHXELAygpBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDykMUgXNR8+vBZ46ZiDEXbA3FnfVPZCQyNr0frL3+TnQIhALCyPXqN6hGjNVlo6Et9b/yBqZsMibWXkmuXwTG6xxbJ"}]},"directories":{}},"2.0.0":{"name":"clean-css-promise","version":"2.0.0","description":"clean-css with the default Promise interface and some improvements","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"node --throw-deprecation --track-heap-objects test.js","coverage":"istanbul cover test.js"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.0.3"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.14.1","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"466da13949039fb4b28db758d22d056a24d86c29","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@2.0.0","_shasum":"e8729ae2aca7f853b84b3103d5983b512abc086c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"e8729ae2aca7f853b84b3103d5983b512abc086c","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-2.0.0.tgz","integrity":"sha512-NGsExfVJDw72y18HDOSh0YyX9K9x3XJlOlcy0oyJaKmbJyhaC9Hr91PRR3JfKtb7DCJWN7SruF0IMsbe24YJ5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9srUafkYUxM9oITYuevbDmNcSyzA9aUbau38cYtz25AiEAyOFQrAqLJW6TmA5Bi9+mqFNKuYkrzOS4jHK8HzA8m6k="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/clean-css-promise-2.0.0.tgz_1486032644328_0.22998366388492286"},"directories":{}},"2.0.1":{"name":"clean-css-promise","version":"2.0.1","description":"clean-css with the default Promise interface and some improvements","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"node --throw-deprecation --track-heap-objects test.js","coverage":"istanbul cover test.js"},"license":"MIT","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.0.4"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.15.0","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"de5e2dffc504aafac5c6650db6e652422c8da945","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@2.0.1","_shasum":"ee0f784e1f2dbd37351f9e1dbd2be524a3b80973","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"ee0f784e1f2dbd37351f9e1dbd2be524a3b80973","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-2.0.1.tgz","integrity":"sha512-17It77+Z540USjmlMwgAm0TdlYhR7Gs23xe5Wx537OA1i9+ngRIDLtqTSYzVcnyqjdIfebfBMILCM0O0oDlE5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9ybyi/oRjtq2PoJ1fPXX3ieuLch2QFoC/eYP3euKK3AIhANjaPE8Wjk2v2XSKFOPRfIuUnbun8loyycNg9A/Tcp6+"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/clean-css-promise-2.0.1.tgz_1486377139132_0.38614384550601244"},"directories":{}},"2.1.0":{"name":"clean-css-promise","version":"2.1.0","description":"clean-css with the default Promise interface and some improvements","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc --reporter=html --reporter=text node test.js"},"license":"ISC","files":["index.js"],"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.1.9"},"devDependencies":{"@shinnn/eslint-config-node":"^5.0.0","eslint":"^4.13.0","nyc":"^11.4.0","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"eec8093db781ef97fa8f5ab241501f0f703c0d13","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.2.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-drIjos9WjRSllp3UO/g/pB731+d0hlC/bFuqFFoE/s7kuYHD2Zvl1hQvX5Tf/JRVUxKOjmvHAPP0TJjUbkXXTQ==","shasum":"2a43936585d56547d7fa0913ff2156f5652d77da","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5mb+CSmtW77sEMDThEo+odr11Y2MO1z7+jeiSkkCPVQIhAODJE6w1HGrWo+zCRtdodWeMlbt8/AnB5xUlklx3eYYQ"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean-css-promise-2.1.0.tgz_1512986936707_0.09027751069515944"},"directories":{}},"3.0.0-0":{"name":"clean-css-promise","version":"3.0.0-0","description":"clean-css with the default Promise interface and some improvements","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"nyc node test.js"},"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.2.1","inspect-with-kind":"^1.0.5"},"devDependencies":{"@shinnn/eslint-config":"^6.8.0","eslint":"^5.8.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"readme":"# clean-css-promise\n\n[![npm version](https://img.shields.io/npm/v/clean-css-promise.svg)](https://www.npmjs.com/package/clean-css-promise)\n[![Build Status](https://travis-ci.org/shinnn/clean-css-promise.svg?branch=master)](https://travis-ci.org/shinnn/clean-css-promise)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/clean-css-promise.svg)](https://coveralls.io/github/shinnn/clean-css-promise?branch=master)\n\n[clean-css](https://github.com/jakubpawlowicz/clean-css) with the default [Promise](https://developer.mozilla.org/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise) interface and some improvements\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise()\n.minify('p { margin: 1px 1px 1px 1px; }')\n.then(({styles}) => console.log(styles)) //=> p{margin:1px}\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).\n\n```\nnpm install clean-css-promise\n```\n\n## API\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n```\n\n### class CleanCssPromise([*options*])\n\n*options*: `Object` ([clean-css constructor options](https://github.com/jakubpawlowicz/clean-css#constructor-options))  \n\nAlmost the same the original `clean-css`, except for:\n\n* [`returnPromise` option](https://github.com/jakubpawlowicz/clean-css#promise-interface) is enabled by default, and cannot be disabled.\n* [*onRejected*](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then#Parameters) function receives an `Error` instead of an `Array`.\n* All problems that clean-css considers as *warnings*, for example broken CSS syntax, are regarded as *errors*.\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise({})\n.minify('@import url(/foo);}')\n.catch(err => {\n  err.message;\n  /*=> `2 errors found while optimizing CSS with clean-css:\n  1. Ignoring local @import of \"/foo\" as resource is missing.\n  2. Invalid character(s) '?' at 1:18. Ignoring.\n\nclean-css dangerously ignores these errors but clean-css-promise doesn't, because it's much more reasonable to update the CSS to fix all problems than to pretend that you didn't see the errors.` */\n});\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe\n","readmeFilename":"README.md","gitHead":"f56b15867b11658f3ab363239bc94b0b7fa2517a","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@3.0.0-0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-LwK5KZ0qh4g6GXsq0gJjyi5wqkIX7QeKDD7bsx6b81MKn5wJfn7p8ZwuzcO1OXKIKn44exSFJYYh0b/SZ6xlZw==","shasum":"2565db6fe8c6622cd390d796efcd4c714d1e2f5c","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-3.0.0-0.tgz","fileCount":4,"unpackedSize":7858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5bHtCRA9TVsSAnZWagAAJqMP/16uJCzgGVi7XRcsEcgJ\nXMKb0mG74O/LxZOnBVwz9SfGSqCDK28o3OsyN4CDYaatxZ6fpI4RpgbBGVLw\nM4SWeNNJztSwz1hAyur80vVRKhCnZKP2rt/cUGhw6wbHv3DbRDo1r+EanqlX\nPLMX1zKvJgC83Xe9v1OkyY1mmaQpfWjpNpKvE06fEsRFq2k9ltU3+KuuiE5k\nuSdrXQhqHN95kBOjYRBfDJInLPyhNW6MRjOQ4z5cWcoUO07qwoxDyGL7V2Gs\nb/22uJEOG7v5MgHOCGi6+HPsyB4e51p5mVYqSAgko0jAUF0MF4MC1GpcGcNh\ndihb3mjQrrU+hPa4d81KlwTyrfxZjYPcmvp6LG/OVbKHj/tLULWUpdjyeZ4K\n6PgzQd2cpBxS4KiMKvWqwLkxR/68Lg9G9mCoUu4k2QiNnbF/EzHkR2FC/lB8\nGwWdKBCyFaWGVEr5AY0doFxp8oEroDue6A5nA/NFfWbQXPzcZRsWO+NWGPpd\nvjMFapd6Iir1ltK/WEGTIOAfq34tt41D37H+cBIuOwlSFPJcUyuPUoMsqagk\nPbYv2KYpim/aV+voMt/4rEB6xXdVp7sYrewNjTGFNd9m/fV1xhSDKj9a0624\n3jViY00Gl6lUi7ZKpGE9h0CuDqiqrbQK3oLO2ECxrUI6SYhiuODnRVPRo9S+\noE/b\r\n=YEiL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgQytkpWMVmPOGwLUngjyjhwZ0P0RPucI5G71JzUnddgIgOes7jZ9J9Xe+pdnuibxYwcMIXLmhA7wJpwq9eeajD9U="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean-css-promise_3.0.0-0_1541779948569_0.892600651345403"},"_hasShrinkwrap":false},"3.0.0-1":{"name":"clean-css-promise","version":"3.0.0-1","description":"clean-css with the default Promise interface and some improvements","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"nyc node test.js"},"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.2.1","inspect-with-kind":"^1.0.5"},"devDependencies":{"@shinnn/eslint-config":"^6.8.0","eslint":"^5.8.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"readme":"# clean-css-promise\n\n[![npm version](https://img.shields.io/npm/v/clean-css-promise.svg)](https://www.npmjs.com/package/clean-css-promise)\n[![Build Status](https://travis-ci.org/shinnn/clean-css-promise.svg?branch=master)](https://travis-ci.org/shinnn/clean-css-promise)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/clean-css-promise.svg)](https://coveralls.io/github/shinnn/clean-css-promise?branch=master)\n\n[clean-css](https://github.com/jakubpawlowicz/clean-css) with the default [Promise](https://developer.mozilla.org/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise) interface and some improvements\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise()\n.minify('p { margin: 1px 1px 1px 1px; }')\n.then(({styles}) => console.log(styles)) //=> p{margin:1px}\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).\n\n```\nnpm install clean-css-promise\n```\n\n## API\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n```\n\n### class CleanCssPromise([*options*])\n\n*options*: `Object` ([clean-css constructor options](https://github.com/jakubpawlowicz/clean-css#constructor-options))  \n\nAlmost the same the original `clean-css`, except for:\n\n* [`returnPromise` option](https://github.com/jakubpawlowicz/clean-css#promise-interface) is enabled by default, and cannot be disabled.\n* [*onRejected*](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then#Parameters) function receives an `Error` instead of an `Array`.\n* All problems that clean-css considers as *warnings*, for example broken CSS syntax, are regarded as *errors*.\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise({})\n.minify('@import url(/foo);}')\n.catch(err => {\n  err.message;\n  /*=> `2 errors found while optimizing CSS with clean-css:\n  1. Ignoring local @import of \"/foo\" as resource is missing.\n  2. Invalid character(s) '?' at 1:18. Ignoring.\n\nclean-css dangerously ignores these errors but clean-css-promise doesn't, because it's much more reasonable to update the CSS to fix all problems than to pretend that you didn't see the errors.` */\n});\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe\n","readmeFilename":"README.md","gitHead":"85f62f512b589eb5721c0fedbc03b3b5088da23c","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@3.0.0-1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-NMaBmVPL37wuJqqCZT9N6GZbhAl67cpz3tOtEMafh8fR61ksUeIPoRY7mtoDTOrzy0mLXwJeFeO8fkmkKaeoNQ==","shasum":"5bb2a34a55f1933fe3b8293a7cae6ba9f203f2b0","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-3.0.0-1.tgz","fileCount":4,"unpackedSize":7796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5bNWCRA9TVsSAnZWagAAH3oP/RqigPTb65PSp5Yhii1Z\n4kUT877MvFszzCl9ky1vNN37g3tDmQTgT3Ce1NZuElBdA9BS7KXLy99FuHdg\n/+YRrz0OP2H5WBwZnU/9g40B3j+uKwJOCgUX/GWjltyX5aYgrT8qAsZre9ZO\nf8KX/gnyfyEj380kfJPWRNlPGHuS8sBVUbJlkqsFToG49pOyj3cx6sckwm/O\nV7MDQAyQdfD0DZGbJ5Pv8cNBobELbtpligLlzu3Zmk9CAraUXLsYfZbaMhCM\n4R7yvKG0NQOS/T/VH1ntToAMgAi9NC8wl5EYHFiunG2w8R1tTGNv3u7O4mJC\n2rqQTJsdksb+0NENn+Gm1ENaJaUxsjPc/65p/T7sDFxujriahMhQAcXUbZHq\n7mNymF25/+WEeZUhhaii1kDt1mqMbl8dKBp48Fa8YM6xb05J1WuPV/Z1/Ty+\nRc1sA2ltOgP2StYsI3/OMUJ02rlGnOXh7bWuYMfFlrfoPLOxAmBr1xuQKGW+\nKxx2+bKpt1qlBcEVI4SR5cHOOAsk0YDW1yLc7Slm+qcYq66WkLGMzdn2bn9Q\nq5c33eckblrtGS6dkcfts1+23MFcYTW4kwAp1TeI21ACoNN7H+KA3OMAzmTz\n751vIIVKKzBqpq1CQ0P/AV6GwNb9pgQF3GMuT+vMTHxCSQfQDzwo4O0+vBOo\n9mcw\r\n=48Hr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6PJPoxD40TBHcTqQ4YXbdqk/+1qfuT6QQkBPRUm+jLwIgOc9bp+Y2ne1zUCkqgv5VEYmWlqhxdJlDodskF9eHRVw="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean-css-promise_3.0.0-1_1541780309874_0.9591245519010345"},"_hasShrinkwrap":false},"3.0.0-2":{"name":"clean-css-promise","version":"3.0.0-2","description":"clean-css with the default Promise interface and some improvements","repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"nyc node test.js"},"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.2.1","inspect-with-kind":"^1.0.5","is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config":"^6.8.0","eslint":"^5.8.0","nyc":"^13.1.0","nyc-config-common":"^1.0.1","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"readme":"# clean-css-promise\n\n[![npm version](https://img.shields.io/npm/v/clean-css-promise.svg)](https://www.npmjs.com/package/clean-css-promise)\n[![Build Status](https://travis-ci.org/shinnn/clean-css-promise.svg?branch=master)](https://travis-ci.org/shinnn/clean-css-promise)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/clean-css-promise.svg)](https://coveralls.io/github/shinnn/clean-css-promise?branch=master)\n\n[clean-css](https://github.com/jakubpawlowicz/clean-css) with the default [Promise](https://developer.mozilla.org/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise) interface and some improvements\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise()\n.minify('p { margin: 1px 1px 1px 1px; }')\n.then(({styles}) => console.log(styles)) //=> p{margin:1px}\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).\n\n```\nnpm install clean-css-promise\n```\n\n## API\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n```\n\n### class CleanCssPromise([*options*])\n\n*options*: `Object` ([clean-css constructor options](https://github.com/jakubpawlowicz/clean-css#constructor-options))  \n\nAlmost the same the original `clean-css`, except for:\n\n* [`returnPromise` option](https://github.com/jakubpawlowicz/clean-css#promise-interface) is enabled by default, and cannot be disabled.\n* [*onRejected*](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then#Parameters) function receives an `Error` instead of an `Array`.\n* All problems that clean-css considers as *warnings*, for example broken CSS syntax, are regarded as *errors*.\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise({})\n.minify('@import url(/foo);}')\n.catch(err => {\n  err.message;\n  /*=> `2 errors found while optimizing CSS with clean-css:\n  1. Ignoring local @import of \"/foo\" as resource is missing.\n  2. Invalid character(s) '?' at 1:18. Ignoring.\n\nclean-css dangerously ignores these errors but clean-css-promise doesn't, because it's much more reasonable to update the CSS to fix all problems than to pretend that you didn't see the errors.` */\n});\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe\n","readmeFilename":"README.md","gitHead":"f1777e1c7b8ad39cef14bd14495494bb35eb0188","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@3.0.0-2","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-lcqlFa1MSgNPpqnmZkG8Pq2/L4MZeLVx1avT1GaqAZ8xwWZnvHZBnpWbYwTg1L3OIWz5oOLdpfuuncrOTF9wxA==","shasum":"f6e95f4c0b70bcdd520dec364f714fb5f3fd1fc0","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-3.0.0-2.tgz","fileCount":4,"unpackedSize":7883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5bzXCRA9TVsSAnZWagAApc8QAIvEB/a6SoQyBgktURy9\nwoJ80FEUyCaba2j1iqt2DboHJkRKgNisLE6acre6wS0t7fCLrsv4kB0uzWh8\nkUJBQSBsNLUwNkzH7tb8Tc7Xu86egIL+yPaduwwmc0oN5qZ3fv0M1zkt2T5h\n0Ar1vKJS+GuZ7OHwb32h6RhgOXjO7k5ef29wJwneqG/BHcPmzHPEv688A1OT\nVe1R+EErbV7Zd65DRdOTau2SXm+2ZKxaZLwvb2c4RjasLhvEwBf1NahccmlR\neCP/7uAPp0P6OnBkUiDB3fZxsrHHWtTLT5/lM3zlt0XN+WmX4Cm3i60yaRBL\nQ1rYKVdpgOjXXmxBei93qiGUKEJWo3+G4LfdCdQNBcYK0J/DBZg53NjAKdW0\nLvNaJyjtUwGTlriJ+lyP8mjji5Xr9XhXVJf7zjfcIbmu3dwbARyRCx/Ug2Bp\nSMBLejB1Awc/UcX2I7C7wmVKaT3XWtOpHfoOldeV6RkKljX9Q6iFsBq8+NZX\n3r2dEKqWL0Yr4j/hhvH4QSPpobE0ipKqAeseDijBZtgUMbUtYGNKaSJjMv9e\nzWmeuZjO82c51dFXDtwKvLFS/pcmkAiTFrxCeboPszMaPgo+QbVnlj/9Sgam\nlhI/PLorKOtmmHxGom3hCFPavcv1md93dNb4jmiRdD643hqBqkyRpyAKkcO6\nquc8\r\n=F0FR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRvwfLN/GRBceZyPO+Ol1OLu7EzaPeHv0hvXR6/LtDtQIgTkmy8XHu+bFfGvzwqQTaVNk56oCaKFi5sKDcdaWRcPU="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean-css-promise_3.0.0-2_1541782742511_0.09185157620287465"},"_hasShrinkwrap":false},"3.0.0":{"name":"clean-css-promise","version":"3.0.0","description":"clean-css with the default Promise interface and some improvements","author":{"name":"Watanabe Shinnosuke","url":"https://github.com/shinnn"},"repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"license":"ISC","scripts":{"pretest":"eslint .","test":"coverage test.mjs"},"keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"dependencies":{"clean-css":"^4.2.1","inspect-with-kind":"^1.0.5","is-plain-obj":"^2.0.0"},"devDependencies":{"@shinnn/eslint-config":"^6.10.4","coverage":"^0.4.0","eslint":"^5.16.0","testit":"^3.1.0"},"eslintConfig":{"extends":"@shinnn"},"gitHead":"03c492e9d09a17086c829827f14f17c11d796871","bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","_id":"clean-css-promise@3.0.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-6/G0alggKgP3FdKB5xkW1A5t6aYDKLETkYR3mPQoAHwNoVrm9J41gLK4n93x3HQmjQgJqDeq1CDtu9X5cEBI+Q==","shasum":"e238cd14cdd1a7336280bed5e97af09044991d01","tarball":"https://registry.npmjs.org/clean-css-promise/-/clean-css-promise-3.0.0.tgz","fileCount":4,"unpackedSize":7854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/gXvCRA9TVsSAnZWagAAqPkP/0yEa4kBOZeyRegUu1Bl\ntqkIcHpKWsr4XK+ClAO+tZmiznGRp/9HHMNE2qNsuQhGK1+dHUFCkX0EDCtA\nqu29WznOTO4XYcDi9DU61yQHa5Lgmv+TfyVxFI/9fuJPp+OzdkeQjLiiWrbT\nWcUPpSxlg6jc1nqrmvRyZlCzMHBO3+m9VRN9JLb33VBnxL06ax2y0eVW9dnO\n8vTKf2BKdNQB8z92YRTEmQb0E7fqoVgBSi45e+jejJWq13CuBssMrX7eyUVJ\n8RdT3P/AJ5Vt/w+od7k4GoJXT33ivlLKXnXyY+0ekyhbRki00omlLHfCiEiJ\nUiOkyfyaI/jCl4PxRz4ZTJGeiINUAMznCNjNLdjwwLiGqzUrPLKfv9A2hjcX\nHhRich1frKVaKndHS/tkrhzDHlYQW7fwRjyBZNj0rxehb18fjlgKVttTaZGN\nQWDK5KJ931cPvCGWsSACIxnfszKrtnFigvhFVfgA/hHKzxGbkrDJXDN5JzJd\nmtv7noXm+Ase78yCwEj8BkKTQlqTqcwKuuh963wPYdbZuvNruGHXLhsGyyMB\nnx9sPQ8JUR7C086yjJaoaujzAZDTeA2Q3VewBDOrtKPoX3OTBO8VDFezL6u2\nz+QMvPTTT4EThIDd9p0WPgf6wNW9E0OcoVJsKpmoNa84xYl3C3y/sUNqvJe7\nr6Ox\r\n=MsCL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6MwufnQNpucKdifuyUJYEZZavWZP/zp5bdX4jVYVi6gIgCz18eNDF/1tuKueQZuzzbAbAJVJK9JsLrcAMDap/9ig="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean-css-promise_3.0.0_1560151534785_0.22885286729040688"},"_hasShrinkwrap":false}},"readme":"# clean-css-promise\n\n[![npm version](https://img.shields.io/npm/v/clean-css-promise.svg)](https://www.npmjs.com/package/clean-css-promise)\n[![Github Actions](https://action-badges.now.sh/shinnn/clean-css-promise)](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/shinnn/clean-css-promise)\n[![codecov](https://codecov.io/gh/shinnn/clean-css-promise/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/clean-css-promise)\n\n[clean-css](https://github.com/jakubpawlowicz/clean-css) with the default [Promise](https://developer.mozilla.org/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise) interface and some improvements\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\n(async () => {\n  const {styles} = await new CleanCssPromise().minify(`\np {\n  color: #ff0000;\n}\n\nb {\n  /* nothing */\n}\n`); //=> 'p{color:red}'\n})();\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install clean-css-promise\n```\n\n## API\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n```\n\n### class CleanCssPromise([*options*])\n\n*options*: `Object` ([clean-css constructor options](https://github.com/jakubpawlowicz/clean-css#constructor-options))  \n\nAlmost the same the original `clean-css`, except for:\n\n* [`returnPromise` option](https://github.com/jakubpawlowicz/clean-css#promise-interface) is enabled by default, and cannot be disabled.\n* [*onRejected*](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then#Parameters) function receives an `Error` instead of an `Array`.\n* All problems that clean-css considers as *warnings*, for example broken CSS syntax, are regarded as *errors*.\n\n```javascript\nconst CleanCssPromise = require('clean-css-promise');\n\nnew CleanCssPromise({})\n.minify('@import url(/foo);}')\n.catch(err => {\n  err.message;\n  /*=> `2 errors found while optimizing CSS with clean-css:\n  1. Ignoring local @import of \"/foo\" as resource is missing.\n  2. Invalid character(s) '?' at 1:18. Ignoring.\n\nclean-css dangerously ignores these errors but clean-css-promise doesn't, because it's much more reasonable to update the CSS to fix all problems than to pretend that you didn't see the errors.` */\n});\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2019 Watanabe Shinnosuke\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-13T06:07:45.308Z","created":"2015-10-06T07:11:22.394Z","0.0.1":"2015-10-06T07:11:22.394Z","1.0.0":"2015-10-06T07:15:31.317Z","0.0.0":"2015-12-03T16:36:46.069Z","0.1.0":"2015-12-03T16:53:37.722Z","0.1.1":"2015-12-04T06:04:52.213Z","1.0.1":"2015-12-05T05:10:47.994Z","2.0.0":"2017-02-02T10:50:46.015Z","2.0.1":"2017-02-06T10:32:20.789Z","2.1.0":"2017-12-11T10:08:56.915Z","3.0.0-0":"2018-11-09T16:12:28.732Z","3.0.0-1":"2018-11-09T16:18:29.970Z","3.0.0-2":"2018-11-09T16:59:02.620Z","3.0.0":"2019-06-10T07:25:34.956Z"},"homepage":"https://github.com/shinnn/clean-css-promise#readme","keywords":["css","clean-css","cleancss","style","styles","stylesheet","minifier","minification","compress","optimization","optimize","optimizer","promise","promises","then","thenable"],"repository":{"type":"git","url":"git+https://github.com/shinnn/clean-css-promise.git"},"author":{"name":"Watanabe Shinnosuke","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/clean-css-promise/issues"},"license":"ISC","readmeFilename":"README.md"}