{
  "manifest": {
    "name": "postcss-modules-scope",
    "version": "3.2.0",
    "description": "A CSS Modules transform to extract export statements from local-scope classes",
    "main": "src/index.js",
    "engines": {
      "node": "^10 || ^12 || >= 14"
    },
    "scripts": {
      "prettier": "prettier -l --ignore-path .gitignore . \"!test/test-cases\"",
      "eslint": "eslint --ignore-path .gitignore .",
      "lint": "yarn eslint && yarn prettier",
      "test:only": "jest",
      "test:watch": "jest --watch",
      "test:coverage": "jest --coverage --collectCoverageFrom=\"src/**/*\"",
      "pretest": "yarn lint",
      "test": "yarn test:coverage",
      "prepublishOnly": "yarn test"
    },
    "repository": {
      "type": "git",
      "url": "https://github.com/css-modules/postcss-modules-scope.git"
    },
    "keywords": [
      "css-modules",
      "postcss",
      "plugin"
    ],
    "files": [
      "src"
    ],
    "author": {
      "name": "Glen Maddern"
    },
    "license": "ISC",
    "bugs": {
      "url": "https://github.com/css-modules/postcss-modules-scope/issues"
    },
    "homepage": "https://github.com/css-modules/postcss-modules-scope",
    "dependencies": {
      "postcss-selector-parser": "^6.0.4"
    },
    "devDependencies": {
      "coveralls": "^3.1.0",
      "eslint": "^7.9.0",
      "eslint-config-prettier": "^6.12.0",
      "husky": "^4.3.0",
      "jest": "^26.4.2",
      "lint-staged": "^10.4.0",
      "postcss": "^8.3.0",
      "prettier": "^2.1.2"
    },
    "peerDependencies": {
      "postcss": "^8.1.0"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-postcss-modules-scope-3.2.0-a43d28289a169ce2c15c00c4e64c0858e43457d5-integrity/node_modules/postcss-modules-scope/package.json",
    "readmeFilename": "README.md",
    "readme": "# CSS Modules: Scope Locals & Extend\n\n[![Build Status](https://travis-ci.org/css-modules/postcss-modules-scope.svg?branch=master)](https://travis-ci.org/css-modules/postcss-modules-scope)\n\nTransforms:\n\n```css\n:local(.continueButton) {\n  color: green;\n}\n```\n\ninto:\n\n```css\n:export {\n  continueButton: __buttons_continueButton_djd347adcxz9;\n}\n.__buttons_continueButton_djd347adcxz9 {\n  color: green;\n}\n```\n\nso it doesn't pollute CSS global scope and can be simply used in JS like so:\n\n```js\nimport styles from \"./buttons.css\";\nelem.innerHTML = `<button class=\"${styles.continueButton}\">Continue</button>`;\n```\n\n## Composition\n\nSince we're exporting class names, there's no reason to export only one. This can give us some really useful reuse of styles:\n\n```css\n.globalButtonStyle {\n  background: white;\n  border: 1px solid;\n  border-radius: 0.25rem;\n}\n.globalButtonStyle:hover {\n  box-shadow: 0 0 4px -2px;\n}\n:local(.continueButton) {\n  compose-with: globalButtonStyle;\n  color: green;\n}\n```\n\nbecomes:\n\n```\n.globalButtonStyle {\n  background: white;\n  border: 1px solid;\n  border-radius: 0.25rem;\n}\n.globalButtonStyle:hover {\n  box-shadow: 0 0 4px -2px;\n}\n:local(.continueButton) {\n  compose-with: globalButtonStyle;\n  color: green;\n}\n```\n\n**Note:** you can also use `composes` as a shorthand for `compose-with`\n\n## Local-by-default & reuse across files\n\nYou're looking for [CSS Modules](https://github.com/css-modules/css-modules). It uses this plugin as well as a few others, and it's amazing.\n\n## Building\n\n```\nnpm install\nnpm test\n```\n\n- Status: [![Build Status](https://travis-ci.org/css-modules/postcss-modules-scope.svg?branch=master)](https://travis-ci.org/css-modules/postcss-modules-scope)\n- Lines: [![Coverage Status](https://coveralls.io/repos/css-modules/postcss-modules-scope/badge.svg?branch=master)](https://coveralls.io/r/css-modules/postcss-modules-scope?branch=master)\n- Statements: [![codecov.io](http://codecov.io/github/css-modules/postcss-modules-scope/coverage.svg?branch=master)](http://codecov.io/github/css-modules/postcss-modules-scope?branch=master)\n\n## Development\n\n- `npm test:watch` will watch `src` and `test` for changes and run the tests\n\n## License\n\nISC\n\n## With thanks\n\n- Mark Dalgleish\n- Tobias Koppers\n- Guy Bedford\n\n---\n\nGlen Maddern, 2015.\n",
    "licenseText": "ISC License (ISC)\n\nCopyright (c) 2015, Glen Maddern\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz#a43d28289a169ce2c15c00c4e64c0858e43457d5",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz",
    "hash": "a43d28289a169ce2c15c00c4e64c0858e43457d5",
    "integrity": "sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ==",
    "registry": "npm",
    "packageName": "postcss-modules-scope",
    "cacheIntegrity": "sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ== sha1-pD0oKJoWnOLBXADE5kwIWOQ0V9U="
  },
  "registry": "npm",
  "hash": "a43d28289a169ce2c15c00c4e64c0858e43457d5"
}