{"_id":"css-imports","_rev":"2832532","name":"css-imports","description":"find all @import in css","dist-tags":{"latest":"0.3.1"},"maintainers":[{"name":"popomore","email":""}],"time":{"modified":"2022-09-06T15:17:36.000Z","created":"2014-03-31T16:45:19.496Z","0.3.1":"2014-08-28T09:07:11.918Z","0.3.0":"2014-05-22T02:04:15.680Z","0.2.1":"2014-05-13T19:45:26.943Z","0.2.0":"2014-04-10T14:43:05.630Z","0.1.0":"2014-03-31T16:45:19.496Z"},"users":{"popomore":true},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"versions":{"0.3.1":{"name":"css-imports","version":"0.3.1","description":"find all @import in css","main":"index","dependencies":{"strip-comments":"~0.1.6"},"devDependencies":{"coveralls":"~2.8.0","istanbul":"~0.2.6","less":"^1.7.0","mocha":"~1.17.1","should":"~3.1.3"},"repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"homepage":"https://github.com/popomore/css-imports","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css-imports/issues"},"_id":"css-imports@0.3.1","dist":{"shasum":"5dde2a51bc2082d73299b147bd5be03e3f498acc","size":13437,"noattachment":false,"key":"/css-imports/-/css-imports-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-imports/download/css-imports-0.3.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1409216831918,"_hasShrinkwrap":false,"_cnpm_publish_time":1409216831918,"_cnpmcore_publish_time":"2021-12-16T13:58:43.752Z"},"0.3.0":{"name":"css-imports","version":"0.3.0","description":"find all @import in css","main":"index","dependencies":{"strip-comments":"~0.1.6"},"devDependencies":{"coveralls":"~2.8.0","istanbul":"~0.2.6","less":"^1.7.0","mocha":"~1.17.1","should":"~3.1.3"},"repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"homepage":"https://github.com/popomore/css-imports","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css-imports/issues"},"_id":"css-imports@0.3.0","dist":{"shasum":"5c9abdeace56f7faad94fb1b8b3da5c413726a0f","size":13420,"noattachment":false,"key":"/css-imports/-/css-imports-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-imports/download/css-imports-0.3.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1400724255680,"_hasShrinkwrap":false,"_cnpm_publish_time":1400724255680,"_cnpmcore_publish_time":"2021-12-16T13:58:43.994Z"},"0.2.1":{"name":"css-imports","version":"0.2.1","description":"find all @import in css","main":"index","dependencies":{},"devDependencies":{"coveralls":"~2.8.0","istanbul":"~0.2.6","less":"^1.7.0","mocha":"~1.17.1","should":"~3.1.3"},"repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"homepage":"https://github.com/popomore/css-imports","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css-imports/issues"},"_id":"css-imports@0.2.1","dist":{"shasum":"fe191a6c2b689471f8ed5454ddf6f5c9c3bcfb45","size":13459,"noattachment":false,"key":"/css-imports/-/css-imports-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-imports/download/css-imports-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1400010326943,"_hasShrinkwrap":false,"_cnpm_publish_time":1400010326943,"_cnpmcore_publish_time":"2021-12-16T13:58:44.192Z"},"0.2.0":{"name":"css-imports","version":"0.2.0","description":"find all @import in css","main":"index","dependencies":{},"devDependencies":{"coveralls":"~2.8.0","istanbul":"~0.2.6","less":"^1.7.0","mocha":"~1.17.1","should":"~3.1.3"},"repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"homepage":"https://github.com/popomore/css-imports","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css-imports/issues"},"_id":"css-imports@0.2.0","dist":{"shasum":"883ee4fb1fd714718fa0b860983081316e70c3e3","size":13430,"noattachment":false,"key":"/css-imports/-/css-imports-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-imports/download/css-imports-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1397140985630,"_hasShrinkwrap":false,"_cnpm_publish_time":1397140985630,"_cnpmcore_publish_time":"2021-12-16T13:58:44.448Z"},"0.1.0":{"name":"css-imports","version":"0.1.0","description":"find all @import in css","main":"index","dependencies":{},"devDependencies":{"coveralls":"~2.8.0","istanbul":"~0.2.6","less":"^1.7.0","mocha":"~1.17.1","should":"~3.1.3"},"repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"homepage":"https://github.com/popomore/css-imports","author":{"name":"popomore","email":"sakura9515@gmail.com"},"license":"MIT","scripts":{"test":"make test"},"bugs":{"url":"https://github.com/popomore/css-imports/issues"},"_id":"css-imports@0.1.0","dist":{"shasum":"cdddadac7fb2155ee498531b30942755e90bbdbc","size":13199,"noattachment":false,"key":"/css-imports/-/css-imports-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/css-imports/download/css-imports-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":""}],"directories":{},"publish_time":1396284319496,"_hasShrinkwrap":false,"_cnpm_publish_time":1396284319496,"_cnpmcore_publish_time":"2021-12-16T13:58:44.686Z"}},"readme":"# css-imports [![Build Status](https://travis-ci.org/popomore/css-imports.png?branch=master)](https://travis-ci.org/popomore/css-imports) [![Coverage Status](https://coveralls.io/repos/popomore/css-imports/badge.png?branch=master)](https://coveralls.io/r/popomore/css-imports?branch=master) \n\nfind all @import in css\n\n---\n\n## Install\n\n```\n$ npm install css-imports -g\n```\n\n## Usage\n\nCss file a.css\n\n```\n@import url(\"./b.css\");\n@import url(\"c.css\");\n```\n\nRun code\n\n```\nvar imports = require('css-imports');\nimports(fs.readFileSync('a.css'));\n```\n\nreturn\n\n```\n[\n  {\n    string: '@import url(\"./b.css\");',\n    path: './b.css',\n    index: 0\n  },\n  {\n    string: '@import url(\"c.css\");',\n    path: 'c.css',\n    index: 24\n  }\n]\n```\n\nYou can add a callback to replace css file\n\n```\nimports(fs.readFileSync('a.css'), function(item) {\n  return '@import url(\"' + resolve(item.path) + '\");';\n});\n```\n\n## LISENCE\n\nCopyright (c) 2014 popomore. Licensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/popomore/css-imports","bugs":{"url":"https://github.com/popomore/css-imports/issues"},"license":"MIT"}