{"name":"@stylelint/postcss-css-in-js","version":"0.37.0","description":"PostCSS syntax for parsing CSS in JS literals","repository":{"type":"git","url":"git+https://github.com/stylelint/postcss-css-in-js.git"},"main":"index.js","keywords":["postcss","syntax","emotion","aphrodite","glamor","glamorous","react-native","react-style","reactcss","styled-components","styletron-react","typestyle","css-in-js","css"],"author":{"name":"gucong3000"},"license":"MIT","nyc":{"reporter":["lcov","text"],"all":true,"cache":true,"check-coverage":true,"exclude":["coverage/**","test{,s}/**","**/.{prettier,eslint,mocha}rc.{js,cjs}"]},"scripts":{"format":"prettier . --write","lint:formatting":"prettier . --check","lint:js":"eslint .","lint":"npm-run-all --parallel lint:*","mocha":"mocha --no-timeouts","test":"nyc npm run mocha","watch":"mocha --watch","debug":"npm run mocha -- --inspect-brk","release":"np"},"dependencies":{"@babel/core":">=7.9.0"},"peerDependencies":{"postcss":">=7.0.0","postcss-syntax":">=0.36.2"},"devDependencies":{"autoprefixer":"^9.7.5","chai":"^4.2.0","codecov":"^3.6.5","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-config-stylelint":"^11.1.0","husky":"^4.2.3","json5":"^2.1.2","lint-staged":"^10.1.1","mocha":"^7.1.1","np":"^6.2.0","npm-run-all":"^4.1.5","nyc":"^15.0.0","postcss":">=7.0.27","postcss-parser-tests":"^6.5.0","postcss-safe-parser":"^4.0.2","postcss-syntax":">=0.36.2","prettier":"^2.0.2"},"publishConfig":{"access":"public"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,md,yml}":"prettier --write"},"eslintConfig":{"extends":["stylelint","prettier"],"rules":{"jest/valid-expect":"off"}},"eslintIgnore":["test/fixtures/*","coverage/**",".nyc_output/**"],"gitHead":"c839aa1a17d944885ef64a756b8b9fe9deff94d1","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.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-9svhg0rpUOo4xkvnllUzM0ZQF/Iwxhi6Bf1rzOA06fDa+fjnBUb2mvEV1c9nJb14g1XD/HMSmvklaVyCo96x6A==","shasum":"199df63fe8d876d74656c8dec3b17e8474ca866e","tarball":"http://registry-npm.ywwl.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.0.tgz","fileCount":25,"unpackedSize":40326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeixF8CRA9TVsSAnZWagAABvYP/10st/cIZ34RIZpn6O0t\nWodwaroIqSUVGI1cUkuiQLYpT6X3AnVPsqK87NNCiFq1UxRmb2Ks9ySm3rtS\ndlFfhsO+mOZoUo/RE/sOcg/+Motvb9040QAORD7m7W8vaH4vQNUbqL5G1ksx\nU23rNHDzqIqP+ieKcC+/PyvuJOqp4KIPP4l1nDDCMfK3kI/JmWLqSdU93i+i\njSEM1oxkiDC96v5SZns4Q0vjYMlNvdEBQcijXhxr48zFKooZgm+ic7KDop5G\n6Rqr9rtAb1qT8K2N9aRLVAKhVGQxsobW9yxbR8T/xSLpQx4nWS/R1hkpUYYE\nMdM4UL//gBMHlzpyGSEdgV8OLN6udPsegKy42+Np9gv2VK5fFFLaA5YoEB/v\nbWEZQdNA6HMIa9syTeGKRKWcnTGLN1VNkSjxP3b4rEYHoKNkkYKXWtBDFS+v\nCU00BhS9kNCstlBd0jABi9tydntBplfe5vxkJ7e6IrJR++0uULaqMqHuioM8\nqy9FdM//GVwqkoAhLZCAuN86lwOwfG3ZH89kObdhBazCi7KIJv/DzccGWHS7\nKPTAtJ2AR7CmDnPX90rz0H7icqCc3Z5P3c0HB2s4Ncu85s/Au5Nd0ZsP1XOj\nA2wzO66QOrMfpRiEDo+XaqRy77/Dybu6myz1jQ5uuRP8n7QPQMx1ZAvbAzMK\n26aL\r\n=Mpvy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCto2NfGxS7X+UCmxYSj2E+JKMzgjDVnlbZmeC2up4N9AIgcvYcxmaIffx1knCf7MEp1EamU/K6N9nF4InUnhuy65Q="}],"size":12707,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.0.tgz"},"maintainers":[{"name":"ntwb","email":"stephen@netweb.com.au"},{"name":"hudochenkov","email":"aleks@hudochenkov.com"},{"name":"jeddy3","email":"npm@richardhallows.com"}],"_npmUser":{"name":"jeddy3","email":"npm@richardhallows.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-css-in-js_0.37.0_1586172284358_0.1406455214754314"},"_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":1586172284556,"_cnpm_publish_time":1586172284556,"dist-tags":{"latest":"0.38.0"}}