{"name":"rework-import","version":"2.0.1","description":"A rework plugin to read and inline CSS files via @import","license":"MIT","repository":{"type":"git","url":"https://github.com/reworkcss/rework-import"},"authors":["Kevin Mårtensson <kevinmartensson@gmail.com>","Jason Campbell <jason@js.la>","Maxime Thirouin <m@moox.io>"],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test/test.js"},"files":["index.js"],"keywords":["css","import","media","rework"],"dependencies":{"css":"^2.0.0","globby":"^1.0.0","parse-import":"^2.0.0","url-regex":"^2.1.1"},"devDependencies":{"ava":"^0.0.4","css-whitespace":"^1.1.0","rework":"^1.0.0"},"gitHead":"8a7258c066caa88d505402eb58e5728f4989c229","bugs":{"url":"https://github.com/reworkcss/rework-import/issues"},"homepage":"https://github.com/reworkcss/rework-import","_id":"rework-import@2.0.1","_shasum":"cb629864afd875d58f2d19651b7629e13dcfb949","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.4","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"jxson","email":"jason@js.la"},{"name":"moox","email":"m@moox.io"},{"name":"kevva","email":"kevinmartensson@gmail.com"}],"dist":{"shasum":"cb629864afd875d58f2d19651b7629e13dcfb949","tarball":"http://registry-npm.ywwl.com/rework-import/download/rework-import-2.0.1.tgz","integrity":"sha512-NCXkJ3wzkdNFU6flFAl+9JZXUoCNJCC2gIcs/vLgXwtogacA/dfpIuEaQqusSEXQiNvS8QHfby7e0i4iQHy9nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICinpxgH/Bqw67Twu5K8Jlp90+uOEYZmewaUq+a1rtj/AiAZDgHBRzJd2exl4Qr6kwg/4fwXgxOr/SHckxFN2Wn2Ig=="}],"size":3407,"noattachment":false,"key":"/rework-import/-/rework-import-2.0.1.tgz"},"directories":{},"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":1422469241136,"_cnpm_publish_time":1422469241136,"dist-tags":{"latest":"2.1.0"}}