{"name":"rework-import","version":"0.0.1","description":"A rework plugin to read and inline css via @import","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test/test-*"},"repository":{"type":"git","url":"git://github.com/jxson/rework-import.git"},"keywords":["css","import","rework"],"author":{"name":"Jason Campbell","email":"jason@js.la"},"license":"MIT","bugs":{"url":"https://github.com/jxson/rework-import/issues"},"dependencies":{"graceful-fs":"~2.0.0","css":"~1.4.1"},"_id":"rework-import@0.0.1","dist":{"shasum":"746fc8d99b0c811a3d27b95e9078f32d6f083dd3","tarball":"http://registry-npm.ywwl.com/rework-import/download/rework-import-0.0.1.tgz","integrity":"sha512-CYNvngjok0K7lgu0gVg0X2zn5l0W5Q1HCKRwTCMUM1XfE6TdH1J8DPsqG9PxDmjM/kK1Nu9CMSLNQ09CHNyQ1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqICgR+7LM0CmaxnLeKYBjcOtNBVhGfKq4IQmZ7a+r1gIgVQ3OGsvZv80l4SvIyP93wEMu7c+hrCOnucFbih+5YJQ="}],"size":1216,"noattachment":false,"key":"/rework-import/-/rework-import-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"jxson","email":"jason@js.la"},"maintainers":[{"name":"jxson","email":"jason@js.la"}],"readme":"# rework-import [![Build Status](http://img.shields.io/travis/reworkcss/rework-import.svg?style=flat)](https://travis-ci.org/reworkcss/rework-import)\n\n> Import stylesheets using `@import` and an optional media query\n\n\n## Install\n\n```bash\n$ npm install --save rework-import\n```\n\n\n## Usage\n\n```js\nvar data = require('fs').readFileSync('index.css');\nvar imprt = require('rework-import');\nvar rework = require('rework');\n\nrework(data)\n\t.use(imprt({path: 'app/stylesheets'}))\n\t.toString();\n```\n\n\n## Options\n\n### encoding\n\nType: `String`  \nDefault: `utf8`\n\nUse if your CSS is encoded in anything other than `UTF-8`.\n\n### path\n\nType: `Array|String`  \nDefault: `process.cwd()` or `__dirname` of [the rework source](https://github.com/reworkcss/css#cssparsecode-options)\n\nA string or an array of paths in where to look for files.\n\n_Note: nested `@import` will additionally benefit of the relative dirname of imported files._\n\n### transform\n\nType: `Function`  \n\nA function to transform the content of imported files. Takes one argument and should return the modified content. Useful if you use [`css-whitespace`](https://github.com/reworkcss/css-whitespace).\n\n## Example\n\n```css\n@import 'foo.css' (min-width: 25em);\n\nbody {\n\tbackground: black;\n}\n```\n\nyields:\n\n```css\n@media (min-width: 25em) {\n\tbody {\n\t\tbackground: red;\n\t}\n\n\th1 {\n\t\tcolor: grey;\n\t}\n}\n\nbody {\n\tbackground: black;\n}\n```\n\n\n## License\n\nMIT © [Jason Campbell](https://github.com/jxson) and [Kevin Mårtensson](http://github.com/kevva)\n","publish_time":1375749559873,"_cnpm_publish_time":1375749559873,"dist-tags":{"latest":"2.1.0"}}