{"_id":"stylehacks@9.0.8","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"97d8006d8d74c665ebf63075abcd64af6e19d121","tarball":"http://registry-npm.ywwl.com/stylehacks/download/stylehacks-9.0.8.tgz","fileCount":69,"integrity":"sha512-PIopN/yo+/Queh2lTvJLQuXJ5yrqxWk6fQTN10daJVjnEaqkM+i+IjQdc8Jzl2fnJ8Ngq1vb57vI0hoLkKs22w==","signatures":[{"sig":"MEUCIQDSge6o4xMu4elIQz8iYmMquZN7Bh4e5ICYNJbDzURDAQIgLYjo4X4hEHdK4gdapOaDFVq8+vZlLOuwGk7HjA85Ojo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAsykFWKBShhzMF7FuAsjQY8WaiMpt3RvBP1RIBqsvvHAiEAu0PfAKwjVj43RC7CraDJWgv8G2ocoBg1R4dSzOeKTrY="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/stylehacks@9.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":52728,"size":13617,"noattachment":false,"key":"/stylehacks/-/stylehacks-9.0.8.tgz"},"main":"./src/index.js","name":"stylehacks","type":"module","types":"./types/index.d.ts","author":{"url":"https://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0"},"exports":{".":{"types":"./types/index.d.ts","default":"./src/index.js"},"./package.json":"./package.json"},"imports":{"#getBrowsersList":{"node":"./src/lib/computeBrowsersToSupport.js","default":"./src/lib/getBrowsersForWebBuild.js"}},"license":"MIT","scripts":{"test":"node --test"},"version":"9.0.8","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"376f166b-ff22-4e9d-99a1-5150d00d46fe"}},"homepage":"https://github.com/cssnano/cssnano","keywords":["browsers","css","hack","hacks","optimise","postcss","postcss-plugin","stylehacks"],"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"description":"Detect/remove browser hacks from CSS files.","directories":{},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"ludovicofischer","email":"livrerie@gmail.com"},{"name":"ai","email":"andrey@sitnik.es"},{"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"}],"dependencies":{"browserslist":"^4.29.3","@csstools/css-tokenizer":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.29"},"peerDependencies":{"postcss":"^8.5.29"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stylehacks_9.0.8_1791476043796_0.5852398555549809"},"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":1791476043897,"_cnpm_publish_time":1791476043897,"dist-tags":{"latest":"9.0.8","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}