{"name":"stylehacks","version":"7.0.5","keywords":["browsers","css","hack","hacks","optimise","postcss","postcss-plugin","stylehacks"],"author":{"url":"http://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"license":"MIT","_id":"stylehacks@7.0.5","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"ludovicofischer","email":"livrerie@gmail.com"},{"name":"ai","email":"andrey@sitnik.ru"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"andyjansson","email":"jansson.andy@gmail.com"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"}],"homepage":"https://github.com/cssnano/cssnano","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"86985a8c810f88e4a1a34804b0fe350686457ca9","tarball":"http://registry-npm.ywwl.com/stylehacks/download/stylehacks-7.0.5.tgz","fileCount":66,"integrity":"sha512-5kNb7V37BNf0Q3w+1pxfa+oiNPS++/b4Jil9e/kPDgrk1zjEd6uR7SZeJiYaLYH6RRSC1XX2/37OTeU/4FvuIA==","signatures":[{"sig":"MEUCIBdNtDxQXGVB4lOtw6P35SEVJn/nhHOytkUrqYjHYNxpAiEA75XOp0c74zTH+36J3qUOPSu4pJaI99Nb1dNjUvBFSEU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38835,"size":9565,"noattachment":false,"key":"/stylehacks/-/stylehacks-7.0.5.tgz"},"main":"src/index.js","_from":"file:stylehacks-7.0.5.tgz","types":"types/index.d.ts","engines":{"node":"^18.12.0 || ^20.9.0 || >=22.0"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"_resolved":"/tmp/50c564f84fe41d6a770b18ded5e6ff9f/stylehacks-7.0.5.tgz","_integrity":"sha512-5kNb7V37BNf0Q3w+1pxfa+oiNPS++/b4Jil9e/kPDgrk1zjEd6uR7SZeJiYaLYH6RRSC1XX2/37OTeU/4FvuIA==","repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"10.8.2","description":"Detect/remove browser hacks from CSS files.","directories":{},"_nodeVersion":"20.19.1","dependencies":{"browserslist":"^4.24.5","postcss-selector-parser":"^7.1.0"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.3"},"peerDependencies":{"postcss":"^8.4.32"},"_npmOperationalInternal":{"tmp":"tmp/stylehacks_7.0.5_1746539666894_0.5673993741126593","host":"s3://npm-registry-packages-npm-production"},"readme":"# stylehacks\n\n> Detect/remove browser hacks from CSS files.\n\n\n## Install\n\nWith [npm](https://npmjs.org/package/stylehacks) do:\n\n```\nnpm install stylehacks --save\n```\n\n\n## Example\n\nIn its default mode, stylehacks will remove hacks from your CSS file, based on\nthe browsers that you wish to support.\n\n### Input\n\n```css\nh1 {\n    _color: white;\n    color: rgba(255, 255, 255, 0.5);\n}\n```\n\n### Output\n\n```css\nh1 {\n    color: rgba(255, 255, 255, 0.5);\n}\n```\n\n\n## API\n\n### `stylehacks.detect(node)`\n\nType: `function`  \nReturns: `boolean`\n\nThis method will take any PostCSS *node*, run applicable plugins depending on\nits type, then will return a boolean depending on whether it found any of\nthe supported hacks. For example, if the `decl` node found below is passed to\nthe `detect` function, it will return `true`. But if the `rule` node is passed,\nit will return `false` instead.\n\n```css\nh1 { _color: red }\n```\n\n### `postcss([ stylehacks(opts) ])`\n\nstylehacks can also be consumed as a PostCSS plugin. See the\n[documentation](https://github.com/postcss/postcss#usage) for examples for\nyour environment.\n\n#### options\n\n##### lint\n\nType: `boolean`  \nDefault: `false`\n\nIf lint mode is enabled, stylehacks will not remove hacks from the CSS; instead,\nit will add warnings to `Result#messages`.\n\n\n## Related\n\nstylehacks works well with your existing PostCSS setup:\n\n* [stylelint] - Comprehensive & modern CSS linter, to ensure that your code\n  style rules are respected.\n\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n\n## License\n\nMIT © [Ben Briggs](https://beneb.info)\n\n\n[stylelint]: https://github.com/stylelint/stylelint\n","publish_time":1746539667090,"_cnpm_publish_time":1746539667090,"dist-tags":{"latest":"9.0.8","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}