{"name":"postcss-modules-local-by-default","version":"4.2.0","description":"A CSS Modules transform to make local scope the default","main":"src/index.js","author":{"name":"Mark Dalgleish"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-modules-local-by-default.git"},"engines":{"node":"^10 || ^12 || >= 14"},"keywords":["css-modules","postcss","css","postcss-plugin"],"scripts":{"prettier":"prettier -l --ignore-path .gitignore .","eslint":"eslint --ignore-path .gitignore .","lint":"yarn eslint && yarn prettier","test:only":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage --collectCoverageFrom=\"src/**/*\"","test":"yarn test:coverage","prepublishOnly":"yarn lint && yarn test"},"dependencies":{"icss-utils":"^5.0.0","postcss-selector-parser":"^7.0.0","postcss-value-parser":"^4.1.0"},"devDependencies":{"coveralls":"^3.1.0","eslint":"^7.10.0","eslint-config-prettier":"^6.12.0","husky":"^4.3.0","jest":"^26.5.2","lint-staged":"^10.4.0","postcss":"^8.1.0","prettier":"^2.1.2"},"peerDependencies":{"postcss":"^8.1.0"},"gitHead":"db195e7e18bf0151b082f50f891809c0bf557e4e","bugs":{"url":"https://github.com/css-modules/postcss-modules-local-by-default/issues"},"homepage":"https://github.com/css-modules/postcss-modules-local-by-default#readme","_id":"postcss-modules-local-by-default@4.2.0","_nodeVersion":"22.11.0","_npmVersion":"9.6.0","dist":{"integrity":"sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==","shasum":"d150f43837831dae25e4085596e84f6f5d6ec368","tarball":"http://registry-npm.ywwl.com/postcss-modules-local-by-default/download/postcss-modules-local-by-default-4.2.0.tgz","fileCount":4,"unpackedSize":26331,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAo6DfHBlrEa0RyiIOcwGP02+3Lx1h4PR7Nw8Ev22bXIAiEAx6OOtXZejcPUimSRMsWunrno1Eq4ejK3bhgZpbuygp8="}],"size":7356,"noattachment":false,"key":"/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.2.0.tgz"},"_npmUser":{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-modules-local-by-default_4.2.0_1733928467319_0.13570508287944905"},"_hasShrinkwrap":false,"readme":"[![Build Status][ci-img]][ci] [![codecov][codecov-img]][codecov] [![npm][npm-img]][npm]\n\n# CSS Modules: Local by Default\n\nTransformation examples:\n\nSelectors (mode `local`, by default)::\n\n<!-- prettier-ignore-start -->\n```css\n.foo { ... } /* => */ :local(.foo) { ... }\n\n.foo .bar { ... } /* => */ :local(.foo) :local(.bar) { ... }\n\n/* Shorthand global selector */\n\n:global .foo .bar { ... } /* => */ .foo .bar { ... }\n\n.foo :global .bar { ... } /* => */ :local(.foo) .bar { ... }\n\n/* Targeted global selector */\n\n:global(.foo) .bar { ... } /* => */ .foo :local(.bar) { ... }\n\n.foo:global(.bar) { ... } /* => */ :local(.foo).bar { ... }\n\n.foo :global(.bar) .baz { ... } /* => */ :local(.foo) .bar :local(.baz) { ... }\n\n.foo:global(.bar) .baz { ... } /* => */ :local(.foo).bar :local(.baz) { ... }\n```\n<!-- prettier-ignore-end -->\n\nDeclarations (mode `local`, by default):\n\n<!-- prettier-ignore-start -->\n```css\n.foo {\n  animation-name: fadeInOut, global(moveLeft300px), local(bounce);\n}\n\n.bar {\n  animation: rotate 1s, global(spin) 3s, local(fly) 6s;\n}\n\n/* => */ \n\n:local(.foo) {\n  animation-name: :local(fadeInOut), moveLeft300px, :local(bounce);\n}\n\n:local(.bar) {\n  animation: :local(rotate) 1s, spin 3s, :local(fly) 6s;\n}\n```\n<!-- prettier-ignore-end -->\n\n## Pure Mode\n\nIn pure mode, all selectors must contain at least one local class or id\nselector\n\nTo ignore this rule for a specific selector, add the a `/* cssmodules-pure-ignore */` comment in front\nof the selector:\n\n```css\n/* cssmodules-pure-ignore */\n:global(#modal-backdrop) {\n  ...;\n}\n```\n\nor by adding a `/* cssmodules-pure-no-check */` comment at the top of a file to disable this check for the whole file:\n\n```css\n/* cssmodules-pure-no-check */\n\n:global(#modal-backdrop) {\n  ...;\n}\n\n:global(#my-id) {\n  ...;\n}\n```\n\n## Building\n\n```bash\n$ npm install\n$ npm test\n```\n\n- Build: [![Build Status][ci-img]][ci]\n- Lines: [![coveralls][coveralls-img]][coveralls]\n- Statements: [![codecov][codecov-img]][codecov]\n\n## Development\n\n```bash\n$ yarn test:watch\n```\n\n## License\n\nMIT\n\n## With thanks\n\n- [Tobias Koppers](https://github.com/sokra)\n- [Glen Maddern](https://github.com/geelen)\n\n---\n\nMark Dalgleish, 2015.\n\n[ci-img]: https://github.com/css-modules/postcss-modules-local-by-default/actions/workflows/nodejs.yml/badge.svg\n[ci]: https://github.com/css-modules/postcss-modules-local-by-default/actions/workflows/nodejs.yml\n[npm-img]: https://img.shields.io/npm/v/postcss-modules-local-by-default.svg?style=flat-square\n[npm]: https://www.npmjs.com/package/postcss-modules-local-by-default\n[coveralls-img]: https://img.shields.io/coveralls/css-modules/postcss-modules-local-by-default/master.svg?style=flat-square\n[coveralls]: https://coveralls.io/r/css-modules/postcss-modules-local-by-default?branch=master\n[codecov-img]: https://img.shields.io/codecov/c/github/css-modules/postcss-modules-local-by-default/master.svg?style=flat-square\n[codecov]: https://codecov.io/github/css-modules/postcss-modules-local-by-default?branch=master\n","publish_time":1733928467509,"maintainers":[{"name":"markdalgleish","email":"mark.john.dalgleish@gmail.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"geelen","email":"glen@glenmaddern.com"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"}],"_cnpm_publish_time":1733928467509,"dist-tags":{"latest":"4.2.0","next":"4.0.0-rc.4"}}