{"name":"postcss-styled","version":"0.5.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"},"_id":"postcss-styled@0.5.0","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"gucong","email":"gucong@gmail.com"},"dist":{"integrity":"sha512-CjHz1vuRkOH+umIvAU4/VlUdFLAIvfZUbm7RTmg1XpcDUuctPO8mIoCQy9MOpD2MHTNCosd1R3WWky/oPflwOA==","shasum":"d64fb09412ef86a788bcb1d5bb03f24dce7b0ccf","tarball":"http://registry-npm.ywwl.com/postcss-styled/download/postcss-styled-0.5.0.tgz","fileCount":11,"unpackedSize":8915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7CCjCRA9TVsSAnZWagAA7mEQAKN2ljPcctZAvnGKaih5\nZGmQgMwc2wmY7Cx4d4JdpZAROi8VtMpd27PCBUnNNQgpbPoKcJ6Vl0mQ53hT\nj58ZxVHQ7bEMse8KdOYho5RU5hzu7jVxYGHnYiNjYgfxBTn4LSCba7FB4E0b\nxt3FGM8Vv1KUccu4G7O0d3VJ95fkWFrHJBTAcU6tzrACWLco4FxKdz9YHfvv\n1BogaIP2TJBkmaQr7qHGB6pVIhjapyBCmyT6Es/K03si0zPhx6WOsjJnAPK+\nB0XaBn/3shbJtfNRyQidP1EQJqFU5VXeHgO0xido10X5bhNwbR+dpLhQmijb\noM4NtjsIPbpxEFwI0v8u06rHbmZM8ox7HKHVLFbvuB7v6Ez6Ku+nrHD7tBBw\nKdMRkXmWdNsCla8QX+/ft9VvQc6OJ6rHZ6KJ/dLCOGetLO/YQdr24SkseZ3w\ngcH56hjXlwEqlZj82d0coAQTClW5Vv5eFc4MzrTtTkjikP4GqmJ8/TEyfeaQ\nUH7isOqOw1KgF0i5KQXkEv32lWpJVweX5AlUCaFzek3MqcisLIqgBNZ1ngL4\n5sSkr/RWH7+NK/qEc1PtpF+FcBbEcaWesCJ2jsLbyCUEyqHtxwZid8JLVBwW\nR8sYNc0UxoMx8cZG07PqxlvwP/PS0Y72m9E0C4GvXrV9wqHxCntbb1GjhtHH\n6Dp0\r\n=dnTA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDquaa7bV5V340u1XnPJzKeH5rwiMyOz1gQcKApVtgzpQIhALTfPuFjYKDothwV8xljJHBfxywy9tsOMZ91yEezNQI7"}],"size":3636,"noattachment":false,"key":"/postcss-styled/-/postcss-styled-0.5.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.5.0_1525424290812_0.9389191402682073"},"_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":1525424290886,"_cnpm_publish_time":1525424290886,"dist-tags":{"latest":"0.34.0"}}