{"name":"rework-import","version":"1.1.2","description":"A rework plugin to read and inline css files via @import","main":"index.js","files":["index.js"],"repository":{"type":"git","url":"git://github.com/reworkcss/rework-import.git"},"authors":["Jason Campbell <jason@js.la>",{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"Maxime Thirouin <m@moox.io>"],"license":"MIT","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter list"},"keywords":["css","import","media","rework"],"dependencies":{"css":"^1.6.0","find-file":"~0.1.0","parse-import":"~0.1.3"},"devDependencies":{"css-whitespace":"^1.1.0","mocha":"^1.18.2","rework":"^1.0.0"},"gitHead":"3b2ae366ff37cefeeb91bb50b0bf2fcab1bde1df","bugs":{"url":"https://github.com/reworkcss/rework-import/issues"},"homepage":"https://github.com/reworkcss/rework-import","_id":"rework-import@1.1.2","_shasum":"10dedf23566b1164b5fd872ffdef27fcee99ca56","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jxson","email":"jason@js.la"},{"name":"moox","email":"m@moox.io"},{"name":"kevva","email":"kevinmartensson@gmail.com"}],"dist":{"shasum":"10dedf23566b1164b5fd872ffdef27fcee99ca56","tarball":"http://registry-npm.ywwl.com/rework-import/download/rework-import-1.1.2.tgz","integrity":"sha512-47vT3yN8BWUijS+tdRlqSaNls34rB9h1eWU3IueIGJpsu3+X9vEMJAIR/fYx0zBknwL+Z98J00YisNrULJuvYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQX/H22nF38VXSseGTcBojI+Z1DCTEOKu4AVezeRcPEAIhAMkikKwTeXKcXX7u0QUBQaxol2VP9s4pWXmME6zZI0qS"}],"size":2661,"noattachment":false,"key":"/rework-import/-/rework-import-1.1.2.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":1403765441859,"_cnpm_publish_time":1403765441859,"dist-tags":{"latest":"2.1.0"}}