{"name":"postcss-styled","version":"0.4.0","description":"PostCSS syntax for parsing styled components","repository":{"type":"git","url":"git+https://github.com/gucong3000/postcss-styled.git"},"keywords":["postcss","syntax","styled-components","react","css-in-js","css"],"author":{"name":"gucong3000"},"license":"MIT","bugs":{"url":"https://github.com/gucong3000/postcss-styled/issues"},"homepage":"https://github.com/gucong3000/postcss-styled#readme","nyc":{"reporter":["lcov","text"],"all":true,"cache":true,"check-coverage":true},"scripts":{"test":"nyc mocha --no-timeouts"},"peerDependencies":{"postcss":">=5.0.0","postcss-syntax":">=0.3.0"},"devDependencies":{"chai":"^4.1.2","codecov":"^3.0.1","mocha":"^5.1.1","nyc":"^11.7.1","postcss":"^6.0.22","postcss-safe-parser":"^3.0.1","postcss-syntax":"^0.3.0"},"gitHead":"2c88028f502874f4fb54b73d38def7a78b4f0418","_id":"postcss-styled@0.4.0","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"gucong","email":"gucong@gmail.com"},"dist":{"integrity":"sha512-DwM/foS+3trhydLd7sWt3/4FQ9nc71g1k0+Y1deqzt0yvXH9/PGs4s8plSVdZjR1LlD+RJT1vxxJoPnCiP23FA==","shasum":"58cabf6957b17f487ac1035418ee5093eac63b22","tarball":"http://registry-npm.ywwl.com/postcss-styled/download/postcss-styled-0.4.0.tgz","fileCount":10,"unpackedSize":8864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7BEwCRA9TVsSAnZWagAArtQP/R0OmbtMGemw0nwyD0Ey\nPHqlkKMF1iSJkIe6EiZsxpku8rVLHWCC1MjeRuc1anGwctPFMMe+7HtYkef8\nznBBdJXQxV1wB1oWkULsT1oOrLNLgHu2tBpjLa3Rq94l+2DUqdFyzPAVQNiZ\n9SZBaVuv8R5yib/YoapRXcj3Qz6oCLrMOGWJikFOorwI23YKmhUt/XLY+bS+\nbavRjC0JTPu+5GsvtlNpE04HSOC4N+Cr3oRN4YwW2BAtIFdTtSYX8dmSYChI\nn55eKtzxQl+h3EPpsKVDsOS6YmA6pH7Oerd4XPQv6dkEeFsEwbzXSmKkY0Od\nCzUMCuSaDaN3vPQTyseOa8p6cnUcoOrRLPVFNFVrbmHHzJjBOmr+OFLUdk7K\ngTIEnxjBUy1RTG04A6NRaDpWPKcQV7XBlcAda+vaYJ1ygeFN2cxpG1Tg7jzm\ny1+HgqT/vUQRiSIoAlKNFsXoGs5YAfrHwK4jWNAUL/uIvEPGwwcYifIE841g\nVQSn4QtnvdSTsJA7AscgxAXULetDK1x+SG1V7ofQSTeq9500eDJTXN74AK37\nldbk+gunPzmwbtftP1L5+AyykBPDjOcOhlGLzUmp3RKyx5vwJ4Glcokw1nFl\nwfd2WyHx8S+ZROgDKt3WCgLdjyNdK08cFXG2OJjKy+WhnwKgHPTW+/qdAoXn\n5JHq\r\n=qsaM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8ACuEdtq5mEm90q1Qw3tXunYB94m0oKfABR1aoF1HfgIhAMrJjV29KsFxKNi0vU2GxpbhgivcHyVMNm3MnpxDjIen"}],"size":3571,"noattachment":false,"key":"/postcss-styled/-/postcss-styled-0.4.0.tgz"},"maintainers":[{"email":"andrey@sitnik.ru","name":"ai"},{"email":"gucong@gmail.com","name":"gucong"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-styled_0.4.0_1525420335506_0.469384675514781"},"_hasShrinkwrap":false,"readme":"PostCSS Styled Syntax\n====\n\n[![NPM version](https://img.shields.io/npm/v/postcss-styled.svg?style=flat-square)](https://www.npmjs.com/package/postcss-styled)\n[![Travis](https://img.shields.io/travis/gucong3000/postcss-styled.svg)](https://travis-ci.org/gucong3000/postcss-styled)\n[![Travis](https://img.shields.io/travis/gucong3000/postcss-syntaxes.svg?label=integration)](https://travis-ci.org/gucong3000/postcss-syntaxes)\n[![Codecov](https://img.shields.io/codecov/c/github/gucong3000/postcss-styled.svg)](https://codecov.io/gh/gucong3000/postcss-styled)\n[![David](https://img.shields.io/david/dev/gucong3000/postcss-styled.svg)](https://david-dm.org/gucong3000/postcss-styled?type=dev)\n\n<img align=\"right\" width=\"95\" height=\"95\"\n\ttitle=\"Philosopher’s stone, logo of PostCSS\"\n\tsrc=\"http://postcss.github.io/postcss/logo.svg\">\n\n[PostCSS](https://github.com/postcss/postcss) syntax for parsing [styled components](https://github.com/styled-components/styled-components)\n\n## Getting Started\n\nFirst thing's first, install the module:\n\n```\nnpm install postcss-styled --save-dev\n```\n\n## Use Cases\n\n```js\nconst postcss = require('postcss');\nconst stylelint = require('stylelint');\nconst syntax = require('postcss-styled')({\n\t// syntax for parse css blocks (non-required options)\n\tcss: require('postcss-safe-parser'),\n});\npostcss([stylelint({ fix: true })]).process(source, { syntax: syntax }).then(function (result) {\n\t// An alias for the result.css property. Use it with syntaxes that generate non-CSS output.\n\tresult.content\n});\n```\n\ninput:\n```javascript\nimport styled from 'styled-components';\nconst Title = styled.h1`\n\tfont-size:   1.5em;\n\t\ttext-align:  center;\n\tcolor: palevioletred;\n`;\n```\n\noutput:\n```javascript\nimport styled from 'styled-components';\nconst Title = styled.h1`\n\tfont-size: 1.5em;\n\ttext-align: center;\n\tcolor: palevioletred;\n`;\n```\n\n## Advanced Use Cases\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.\n","publish_time":1525420335556,"_cnpm_publish_time":1525420335556,"dist-tags":{"latest":"0.34.0"}}