{"name":"postcss-styled","version":"0.0.1","description":"PostCSS syntax for parsing styled components","main":"lib/index.js","scripts":{"report-coverage":"codecov","pretest":"eslint lib test","test":"nyc mocha --no-timeouts"},"nyc":{"lines":100,"statements":100,"functions":100,"branches":100,"reporter":["lcov","text"],"all":true,"cache":true,"check-coverage":true},"repository":{"type":"git","url":"git+https://github.com/gucong3000/postcss-styled.git"},"keywords":["postcss","syntax","styled","css","less","sass","scss","sss","sugarss"],"author":{"name":"gucong3000"},"license":"MIT","bugs":{"url":"https://github.com/gucong3000/postcss-styled/issues"},"homepage":"https://github.com/gucong3000/postcss-styled#readme","peerDependencies":{"postcss":">=5.0.0","postcss-safe-parser":">=3.0.0"},"devDependencies":{"chai":"^4.1.2","codecov":"^3.0.0","eslint":"^4.19.1","eslint-config-standard":"^11.0.0","eslint-plugin-import":"^2.10.0","eslint-plugin-node":"^6.0.1","eslint-plugin-promise":"^3.7.0","eslint-plugin-standard":"^3.0.1","mocha":"^5.0.5","nyc":"^11.6.0","postcss":"^6.0.21","postcss-html":"^0.20.1","postcss-safe-parser":"^3.0.1","postcss-syntax":"file:../postcss-syntax"},"gitHead":"e252c21cfd6f9cc447ac6fbc39c247c7987c873f","_id":"postcss-styled@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"gucong","email":"gucong@gmail.com"},"dist":{"integrity":"sha512-fxvAbk56t2LpmhN36AYxoLpJcufzEDswlwGLbc4tkDW14tNMctV73slbL9FZ2KOeiuwdzQvF2xcOYLAixqqj/A==","shasum":"3b0898eba4bcda367677d2581084ed4d2ed639d9","tarball":"http://registry-npm.ywwl.com/postcss-styled/download/postcss-styled-0.0.1.tgz","fileCount":10,"unpackedSize":7298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD3+ZNUvJaruxSPrP9tFepmtzQ3Rd/in0S/6HRg393kQIgQQBmCno6CSpFPziRFmapzK3h35SvUOnIgm9FHVUnMbY="}],"size":2990,"noattachment":false,"key":"/postcss-styled/-/postcss-styled-0.0.1.tgz"},"maintainers":[{"name":"gucong","email":"gucong@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-styled_0.0.1_1523531168088_0.10564640327006325"},"_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":1523531168129,"_cnpm_publish_time":1523531168129,"dist-tags":{"latest":"0.34.0"}}