{"name":"@stylelint/postcss-css-in-js","version":"0.37.1","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":"d5283cf159568b72140780df10ab0601356242de","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.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-UMf2Rni3JGKi3ZwYRGMYJ5ipOA5ENJSKMtYA/pE1ZLURwdh7B5+z2r73RmWvub+N0UuH1Lo+TGfCgYwPvqpXNw==","shasum":"41e5e7660f73d88227610e18c6ebb262d56ac125","tarball":"http://registry-npm.ywwl.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.1.tgz","fileCount":25,"unpackedSize":40592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekb4dCRA9TVsSAnZWagAAjsQP/RbSqeDV9VB7KEKq0ES/\nYAteRlgIIye5qOqPij3FpCjzudlx38flq8jZ6TwlA+A8nQoRDvs8mL6vWdBE\nKFzn2J5T6kMJuuYEgGTT7nnCHCZY9t4j4h/V5DVoKIja+MYRhyl9DOKGKN/d\n2YRQFjzaKpD3FoJAPPyPACT+LsVQzlkGffJe2l51TFRN+AU2jkuzmsL9EUpZ\nG71f00fBrPMZieMUNZCjDfr+WeiXluN9NwhiTSdXxwuJIbPgYQgRPHKo+YwB\nZwmTKEmoRAhQBuFYOPv7sDQ5Y8iXGadMfdlxuYJHe9GI5KPd0/+Jn6t2N3g4\nDUHbyv8NapUDAjl0cmqouWtQ0d9R4Qbrr61IDdh5AwMUu3nzOm8hYq28q3c0\ncSP6Yp9oYeYoDBQ/n7d4HtUEq558XM8Vrl8+gZQU/ogN4t/0x5wRNf030U4u\ny6t9B+FBYBFb0E62CFMCR8D/3tZfltzHh2vubGpW/ayoQaUkpdp2safyMQ7o\n1g2jEEvsrjkdFC8K3o4+NfvK2kEsPqMSYV6HXs0jOn0Zc/myV/FY0Xl3zGnu\nHVrimwLgd9vaRYA9oMU8maloUNYPcHnskWhD3Yc9/Ya7DiG9LFV7M7+y9ARL\no5yf0NXQymdqNMCKr3Qpp7+npiZv3+2OgSGnQ4lRP5O3vWt+t1sgBTa0l1aY\n5FJa\r\n=10f+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyvJ0rf9ng4/uyDv0Sy+tkWT56Sns8Ys4YIguTm/LoDAiAzgzwqIQDbn3TGPaTfDRvDBrxRnuewp6uPpReDjRNZZw=="}],"size":12772,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.1.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.1_1586609693233_0.029106813434045975"},"_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":1586609693427,"_cnpm_publish_time":1586609693427,"dist-tags":{"latest":"0.38.0"}}