{"name":"@stylelint/postcss-css-in-js","version":"0.37.2","description":"PostCSS syntax for parsing CSS in JS literals","keywords":["postcss","syntax","emotion","aphrodite","glamor","glamorous","react-native","react-style","reactcss","styled-components","styletron-react","typestyle","css-in-js","css"],"repository":{"type":"git","url":"git+https://github.com/stylelint/postcss-css-in-js.git"},"license":"MIT","author":{"name":"gucong3000"},"main":"index.js","scripts":{"debug":"npm run mocha -- --inspect-brk","format":"prettier . --write","lint":"npm-run-all --parallel lint:*","lint:formatting":"prettier . --check","lint:js":"eslint . --cache --max-warnings=0","lint:md":"remark . --quiet --frail","mocha":"mocha --no-timeouts","release":"np","test":"nyc npm run mocha","watch":"mocha --watch"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,md,yml}":"prettier --write"},"prettier":"@stylelint/prettier-config","eslintConfig":{"extends":["stylelint"],"rules":{"array-callback-return":"off","no-confusing-arrow":"off","no-else-return":"off","prefer--template":"off","prefer-object-spread":"off","prefer-rest-params":"off","prefer-spread":"off","prefer-template":"off","jest/expect-expect":"off","jest/valid-expect":"off"}},"remarkConfig":{"plugins":["@stylelint/remark-preset"]},"nyc":{"all":true,"cache":true,"check-coverage":true,"exclude":["coverage/**","test{,s}/**","**/.{prettier,eslint,mocha}rc.{js,cjs}"],"reporter":["lcov","text"]},"dependencies":{"@babel/core":">=7.9.0"},"devDependencies":{"@stylelint/prettier-config":"^2.0.0","@stylelint/remark-preset":"^1.0.0","autoprefixer":"^9.7.6","chai":"^4.2.0","codecov":"^3.6.5","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-config-stylelint":"^12.0.0","husky":"^4.2.5","json5":"^2.1.3","lint-staged":"^10.1.3","mocha":"^7.1.1","np":"^6.3.2","npm-run-all":"^4.1.5","nyc":"^15.0.1","postcss":">=7.0.27","postcss-parser-tests":"^6.5.0","postcss-safe-parser":"^4.0.2","postcss-syntax":">=0.36.2","prettier":"^2.0.4","remark-cli":"^8.0.0"},"peerDependencies":{"postcss":">=7.0.0","postcss-syntax":">=0.36.2"},"publishConfig":{"access":"public"},"gitHead":"56c88a6ddbad301caeb9dc61b541323ecb53f91d","bugs":{"url":"https://github.com/stylelint/postcss-css-in-js/issues"},"homepage":"https://github.com/stylelint/postcss-css-in-js#readme","_id":"@stylelint/postcss-css-in-js@0.37.2","_nodeVersion":"12.18.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-nEhsFoJurt8oUmieT8qy4nk81WRHmJynmVwn/Vts08PL9fhgIsMhk1GId5yAN643OzqEEb5S/6At2TZW7pqPDA==","shasum":"7e5a84ad181f4234a2480803422a47b8749af3d2","tarball":"http://registry-npm.ywwl.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.2.tgz","fileCount":24,"unpackedSize":40841,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCx+4CRA9TVsSAnZWagAAajkQAJBRePVc1odIq+XwDK6P\nY0Z6odaWCKwo/so5/MK29sgq2HGSNpJJ0+pn1/KQ7hdaiZ4VRnbivSEVpCXx\njvfIMzbipMXze53TvoFXzkxDx/uLD50oFEgV7Q4+b3ylisGmPaEMUahxbddH\nPBvWDltTo3fsKn8LC4hEUa2YNiXV9Bgp/KMSm9HVdx2RVyXsKLeaG6kr6DZI\n/KLLu0y+a+dCy+tMVNEfvVU+Dg2chVjo1i08Rsl5kpYxWtcRWwCCs47rQivo\nvlqGQfnvhhIvPc/N0I+9U0z0c7R+JhU+AoAYRg95MbswCzPMsON1B7v4o/EE\n1kXBhZzp+gtWzpMMqQetTGvyY5QNTHeD3qU5TUXoNDmzQZGfQmX1hUjoBEh4\nZIoWuqmh1GkgRAcOpW5CZXEHGqXdYno63JFtyLoRzyrMcmWKTSDM7TssJn0T\nbT222NYL1uS+2Rd7s0szsXPy7JGzApU31+Och5zF64IZKXd9JK4MXq7FfQ3r\nRTmcwFQZnqdJ5/fSQLswZljMb+BVGrN4y3NkkvGG6L7P6vYon/jJo623AZfr\nSmZYtIK1uf0+Jm9KwqkUMvJeyHPpainS9RRN7p39TFdZqrBOrfCMb2Xfzztq\nOky/ZIerHYbJlkqk5AwLWlSv11mlp2MhvhNUAA4Z0F+n0HQgdiNROXo3/lnd\nin4q\r\n=5/Ko\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPPgmmuzz0e3AdOONfBjHPqJvcvXBNcXdw+WHxX6zSyAiEAx2HTcKCaU2THWHy6rPAAsd9PG/RWT2u1Go6dNOHcYdI="}],"size":12723,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.2.tgz"},"maintainers":[{"name":"hudochenkov","email":"aleks@hudochenkov.com"},{"name":"jeddy3","email":"npm@richardhallows.com"},{"name":"ntwb","email":"stephen@netweb.com.au"}],"_npmUser":{"name":"jeddy3","email":"npm@richardhallows.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-css-in-js_0.37.2_1594564535903_0.2890913396797543"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","readme":"# PostCSS CSS-in-JS Syntax\n\n[![NPM version](https://img.shields.io/npm/v/@stylelint/postcss-css-in-js.svg)](https://www.npmjs.org/package/@stylelint/postcss-css-in-js) [![Build Status](https://github.com/stylelint/postcss-css-in-js/workflows/CI/badge.svg)](https://github.com/stylelint/postcss-css-in-js/actions)\n\n<img align=\"right\" width=\"95\" height=\"95\"\n\ttitle=\"Philosopher’s stone, logo of PostCSS\"\n\tsrc=\"https://api.postcss.org/logo.svg\">\n\n[PostCSS](https://github.com/postcss/postcss) syntax for parsing [CSS in JS](https://github.com/MicheleBertoli/css-in-js) literals:\n\n- [aphrodite](https://github.com/Khan/aphrodite)\n- [astroturf](https://github.com/4Catalyzer/astroturf)\n- [csjs](https://github.com/rtsao/csjs)\n- [css-light](https://github.com/streamich/css-light)\n- [cssobj](https://github.com/cssobj/cssobj)\n- [electron-css](https://github.com/azukaar/electron-css)\n- [emotion](https://github.com/emotion-js/emotion)\n- [freestyler](https://github.com/streamich/freestyler)\n- [glamor](https://github.com/threepointone/glamor)\n- [glamorous](https://github.com/paypal/glamorous)\n- [j2c](https://github.com/j2css/j2c)\n- [linaria](https://github.com/callstack/linaria)\n- [lit-css](https://github.com/bashmish/lit-css)\n- [react-native](https://github.com/necolas/react-native-web)\n- [react-style](https://github.com/js-next/react-style)\n- [reactcss](https://github.com/casesandberg/reactcss)\n- [styled-components](https://github.com/styled-components/styled-components)\n- [styletron-react](https://github.com/rtsao/styletron)\n- [styling](https://github.com/andreypopp/styling)\n- [typestyle](https://github.com/typestyle/typestyle)\n\n## Getting Started\n\nFirst thing's first, install the module:\n\n```\nnpm install postcss-syntax @stylelint/postcss-css-in-js --save-dev\n```\n\n## Use Cases\n\n```js\nconst postcss = require(\"postcss\");\nconst stylelint = require(\"stylelint\");\nconst syntax = require(\"postcss-syntax\");\npostcss([stylelint({ fix: true })])\n  .process(source, { syntax: syntax })\n  .then(function (result) {\n    // An alias for the result.css property. Use it with syntaxes that generate non-CSS output.\n    result.content;\n  });\n```\n\ninput:\n\n```javascript\nimport glm from \"glamorous\";\nconst Component1 = glm.a({\n  flexDirectionn: \"row\",\n  display: \"inline-block\",\n  color: \"#fff\"\n});\n```\n\noutput:\n\n```javascript\nimport glm from \"glamorous\";\nconst Component1 = glm.a({\n  color: \"#fff\",\n  display: \"inline-block\",\n  flexDirectionn: \"row\"\n});\n```\n\n## Advanced Use Cases\n\nAdd support for more `css-in-js` package:\n\n```js\nconst syntax = require(\"postcss-syntax\")({\n  \"i-css\": (index, namespace) => namespace[index + 1] === \"addStyles\",\n  \"styled-components\": true\n});\n```\n\nSee: [postcss-syntax](https://github.com/gucong3000/postcss-syntax)\n\n## Style Transformations\n\nThe main use case of this plugin is to apply PostCSS transformations to CSS code in template literals & styles as object literals.\n","publish_time":1594564536047,"_cnpm_publish_time":1594564536047,"dist-tags":{"latest":"0.38.0"}}