{"_id":"@stylelint/postcss-css-in-js","_rev":"2837224","name":"@stylelint/postcss-css-in-js","description":"PostCSS syntax for parsing CSS in JS literals","dist-tags":{"latest":"0.38.0"},"maintainers":[{"name":"jeddy3","email":""},{"name":"romainmenke","email":""},{"name":"ybiquitous","email":"10koba01@gmail.com"}],"time":{"modified":"2024-08-27T19:14:13.000Z","created":"2020-04-06T11:24:44.556Z","0.38.0":"2022-05-03T08:01:19.747Z","0.37.3":"2022-05-02T16:15:28.610Z","0.37.2":"2020-07-12T14:35:36.047Z","0.37.1":"2020-04-11T12:54:53.427Z","0.37.0":"2020-04-06T11:24:44.556Z"},"users":{},"author":{"name":"gucong3000"},"repository":{"type":"git","url":"git+https://github.com/stylelint/postcss-css-in-js.git"},"versions":{"0.38.0":{"name":"@stylelint/postcss-css-in-js","version":"0.38.0","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":{"format":"prettier . --write","_postinstall":"is-ci || husky install","lint":"npm-run-all --parallel lint:*","lint:formatting":"prettier . --check","lint:js":"eslint . --cache --max-warnings=0","lint:md":"remark . --quiet --frail","prepublishOnly":"pinst --disable","postpublish":"pinst --enable","release":"np","test":"jest","watch":"jest --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"]},"remarkConfig":{"plugins":["@stylelint/remark-preset"]},"jest":{"collectCoverage":true,"collectCoverageFrom":["**/*.js","!coverage/**","!test{,s}/**","!**/.{prettier,eslint,mocha}rc.{js,cjs}"],"testMatch":["**/test/*.js","**/test/**/*.test.js"]},"dependencies":{"@babel/core":"^7.17.9"},"devDependencies":{"@babel/plugin-proposal-decorators":"^7.17.9","@stylelint/prettier-config":"^2.0.0","@stylelint/remark-preset":"^2.0.0","autoprefixer":"^9.8.6","codecov":"^3.8.3","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-stylelint":"^13.1.0","husky":"^7.0.2","is-ci":"^3.0.0","jest":"^26.6.3","json5":"^2.2.0","lint-staged":"^11.1.2","np":"^7.5.0","npm-run-all":"^4.1.5","pinst":"^2.1.6","postcss":">=7.0.32","postcss-parser-tests":"^6.5.0","postcss-safe-parser":"^4.0.2","postcss-syntax":">=0.36.2","prettier":"^2.4.1","remark-cli":"^9.0.0"},"peerDependencies":{"postcss":">=7.0.0","postcss-syntax":">=0.36.2"},"publishConfig":{"access":"public"},"gitHead":"386c1cf8ef31f572a77727dbf972892f617b6642","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.38.0","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"shasum":"eabb061df932744db766f11a153ae1c465b6263c","size":12605,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.38.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.38.0.tgz"},"_npmUser":{"name":"hudochenkov","email":"aleks@hudochenkov.com"},"directories":{},"maintainers":[{"name":"jeddy3","email":""},{"name":"romainmenke","email":""},{"name":"ybiquitous","email":"10koba01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-css-in-js_0.38.0_1651564879559_0.8742225263748427"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-03T08:01:23.735Z","publish_time":1651564879747,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1651564879747},"0.37.3":{"name":"@stylelint/postcss-css-in-js","version":"0.37.3","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":{"format":"prettier . --write","_postinstall":"is-ci || husky install","lint":"npm-run-all --parallel lint:*","lint:formatting":"prettier . --check","lint:js":"eslint . --cache --max-warnings=0","lint:md":"remark . --quiet --frail","prepublishOnly":"pinst --disable","postpublish":"pinst --enable","release":"np","test":"jest","watch":"jest --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"]},"remarkConfig":{"plugins":["@stylelint/remark-preset"]},"jest":{"collectCoverage":true,"collectCoverageFrom":["**/*.js","!coverage/**","!test{,s}/**","!**/.{prettier,eslint,mocha}rc.{js,cjs}"],"testMatch":["**/test/*.js","**/test/**/*.test.js"]},"dependencies":{"@babel/core":"^7.17.9"},"devDependencies":{"@stylelint/prettier-config":"^2.0.0","@stylelint/remark-preset":"^2.0.0","autoprefixer":"^9.8.6","codecov":"^3.8.3","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-stylelint":"^13.1.0","husky":"^7.0.2","is-ci":"^3.0.0","jest":"^26.6.3","json5":"^2.2.0","lint-staged":"^11.1.2","np":"^7.5.0","npm-run-all":"^4.1.5","pinst":"^2.1.6","postcss":">=7.0.32","postcss-parser-tests":"^6.5.0","postcss-safe-parser":"^4.0.2","postcss-syntax":">=0.36.2","prettier":"^2.4.1","remark-cli":"^9.0.0"},"peerDependencies":{"postcss":">=7.0.0","postcss-syntax":">=0.36.2"},"publishConfig":{"access":"public"},"gitHead":"1a8e100450c60f75fb9062d15c29fa1e6e795f45","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.3","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"shasum":"d149a385e07ae365b0107314c084cb6c11adbf49","size":12487,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.3.tgz"},"_npmUser":{"name":"hudochenkov","email":"aleks@hudochenkov.com"},"directories":{},"maintainers":[{"name":"jeddy3","email":""},{"name":"romainmenke","email":""},{"name":"ybiquitous","email":"10koba01@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-css-in-js_0.37.3_1651508128368_0.40629682910601783"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-02T16:16:31.642Z","publish_time":1651508128610,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1651508128610},"0.37.2":{"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":{"shasum":"7e5a84ad181f4234a2480803422a47b8749af3d2","size":12723,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.2.tgz"},"maintainers":[{"name":"jeddy3","email":""},{"name":"romainmenke","email":""},{"name":"ybiquitous","email":"10koba01@gmail.com"}],"_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,"publish_time":1594564536047,"_cnpm_publish_time":1594564536047,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.37.1":{"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":{"shasum":"41e5e7660f73d88227610e18c6ebb262d56ac125","size":12772,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.1.tgz"},"maintainers":[{"name":"jeddy3","email":""},{"name":"romainmenke","email":""},{"name":"ybiquitous","email":"10koba01@gmail.com"}],"_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,"publish_time":1586609693427,"_cnpm_publish_time":1586609693427,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.37.0":{"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":{"shasum":"199df63fe8d876d74656c8dec3b17e8474ca866e","size":12707,"noattachment":false,"key":"/@stylelint/postcss-css-in-js/-/@stylelint/postcss-css-in-js-0.37.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@stylelint/postcss-css-in-js/download/@stylelint/postcss-css-in-js-0.37.0.tgz"},"maintainers":[{"name":"jeddy3","email":""},{"name":"romainmenke","email":""},{"name":"ybiquitous","email":"10koba01@gmail.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,"publish_time":1586172284556,"_cnpm_publish_time":1586172284556,"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","_attachments":{},"homepage":"https://github.com/stylelint/postcss-css-in-js#readme","bugs":{"url":"https://github.com/stylelint/postcss-css-in-js/issues"},"license":"MIT"}