{"name":"postcss-styled","version":"0.32.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.32.0"},"devDependencies":{"chai":"^4.1.2","codecov":"^3.0.4","mocha":"^5.2.0","nyc":"^12.0.2","postcss":"^7.0.1","postcss-safe-parser":"^4.0.1","postcss-syntax":">=0.32.0"},"_id":"postcss-styled@0.32.0","_npmVersion":"6.2.0","_nodeVersion":"8.11.3","_npmUser":{"name":"gucong","email":"gucong@gmail.com"},"dist":{"integrity":"sha512-kNZ3sakKmmGzytD2n0tqWh3CCuVW9aOT8Tat7Ne7WhyVCZs5kChQygMeFQ3khpgbiOvWOcAFl5fy98xsxOnmpA==","shasum":"b038bdf6c117def2057b26b28dec5ada44c5f09a","tarball":"http://registry-npm.ywwl.com/postcss-styled/download/postcss-styled-0.32.0.tgz","fileCount":10,"unpackedSize":8879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWq0eCRA9TVsSAnZWagAAwD8QAJ+rQx1CT5p6/G3ntJWX\nsuyYWI887ksLkrBzYFRgsNmXkkzVzYqI+Zb3yW3V524JEc11nyt2UsRqjqGa\n8yTQMoPNQPanzmQAP8AS32dGmLkBuaM7owT+fM+G8w9NPgsx23DFYLFgEojQ\n5QndXnKpMyADlJVPq0KsbfqhI4opyEbj9ylfIhY2eI0j461boN3gHrs71YnJ\nCKm7EzG1AMD8EiPMYWwOlaL5mpfFvmAxHP42sPyFCi+WCCVx9KU9niMj+ewY\nbrE8dTX0sQuktSpTwXKT3CVTc/yaHqyWwPcK2W9b/DbTX5sN8XZntFOoJ1Gk\nTnX2Kab6v9At2z0+7ZX9qDVB/bg2kkzItimKWPi8kljgzq5AJTe888PMiddv\nFc0av+B5WP49l7QbAQImMTiy79As0Ko53EBTaJNM0mWDjomMJFxRI/f21zQ/\nz1QBFb2YwDnlnHPv1vqaGsYreAVFT269z0wDz4ds+cMTtfrsBBcPEtkF4t7U\n1wKhafG9UjqJA6HgHIXBOqytue++NIGgf3k9DdMP2S/7TrYFCGuIEWO+VjH2\njpjYM+P8j6ETOfOD6NcpqbkX3Y/d6VDxSuNcVRRRAQnusXuqa3Iuyobhr3Rf\n5mcI0XlsDuty27+40xFMzE6jNm+55myBnF29QDWVpILFzxaJqE0vOhtROdvT\ntYJJ\r\n=jRfa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8CdQfHmPOg2GVSTeK88e+U7KKruvqA8mVZANaJNwAWAiEAh2hPiOOaHPxYMs6mQx/lmjms5aveKagLb2jNy3dScYY="}],"size":3580,"noattachment":false,"key":"/postcss-styled/-/postcss-styled-0.32.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.32.0_1532669214511_0.494613782643182"},"_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":1532669214595,"_cnpm_publish_time":1532669214595,"dist-tags":{"latest":"0.34.0"}}