{"name":"postcss-styled","version":"0.26.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.26.0"},"devDependencies":{"chai":"^4.1.2","codecov":"^3.0.2","mocha":"^5.2.0","nyc":"^11.8.0","postcss":"^6.0.22","postcss-safe-parser":"^3.0.1","postcss-syntax":">=0.26.0"},"_id":"postcss-styled@0.26.0","_shasum":"b3d06ebc2058ab6c82728de5cd4fbe4925d15c87","_from":".","_npmVersion":"3.10.10","_nodeVersion":"10.0.0","_npmUser":{"name":"gucong","email":"gucong@gmail.com"},"dist":{"shasum":"b3d06ebc2058ab6c82728de5cd4fbe4925d15c87","tarball":"http://registry-npm.ywwl.com/postcss-styled/download/postcss-styled-0.26.0.tgz","fileCount":11,"unpackedSize":8933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbC5TACRA9TVsSAnZWagAAmRYP/21RzcvBFyGm7E60YW3F\njbFzqbQ7Uf4dUofpNQpaudF7eT566uniLY+5Wu2mvNSNHIPQR48mdwWstJDd\ndFTxw78kyaV7r5vPZYvY0YiTs1IGOcO0kc3EUNQP18ycWMqq//3Pb0JefRKz\n7dM98qWfbUXyQpwRZzeA6frKAE3PIdjYK/KHZUX3Otck68Lsyo5OWtRoVrgs\nB2qEjvor/N+tmZeu+px/DiWSH/TpM8x4XCMXL/DfrvNC49c9pxBaW/QGfnFE\nEQ1NAfZ++KNzCvuAisuSUmBRT0EH+/hWamlaQv/hV2CoA4FZuA4dxbRdxGBT\n93W2mzPZIPe+I3sKKUXQo9oyr7wLGh8RqDpBr2y8z4S3i8pf0qpapQTIOdzQ\nCOZHBpYS1Jka5vZgnIuFhAJX5OKEylJQvSd3jDvxYl2U5kXKJM1Qx+XutqB4\nqgz6PEt0G0+aDlm7PpQtawjBatr0bR6OwIJ8+gHS7BZe+SLb2Bw6K9X8p6uu\nwH/DGE+x39YNwqt7aDs/lAFSef0LfN25hv8b6lXPRqGHBIb3ellxjahCFp5Z\npCn+Bq9UajNVT7+tbq1sDkOc8C7xzIf0fQHDa7G8Ac9DMObi0oLVR7F1OQGM\nMRYYbxUQoKyVnlEOO4aaV5LMqYEXO1QrdP46tZ3RVaI3zu5tJu8xAWoqicRn\nYJQm\r\n=unlr\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-PcG0Z6TmHoXz/Ug3M9uWEpLBBzngoyuRP/TzMceMoOS5fd6L9GAwD4wOvkHcz/2LYSoYH07Hic4K2o9Wkw2aaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdKqCRN5CTnn5FHN3BzTrRJnq+skVYBTMNYJgl/zVt+AIhALOI66+ahELLo4llFntxRv7qrpIAqA0Nkw6XRudFbcL8"}],"size":3659,"noattachment":false,"key":"/postcss-styled/-/postcss-styled-0.26.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.26.0_1527485632230_0.17114044344566626"},"_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":1527485632273,"_cnpm_publish_time":1527485632273,"dist-tags":{"latest":"0.34.0"}}