{"_id":"css-imports","_rev":"13-b9ca923beb1784b27e8d7de7da95cb55","name":"css-imports","description":"find all @import in css","dist-tags":{"latest":"0.3.1"},"versions":{"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","tarball":"https://registry.npmjs.org/css-imports/-/css-imports-0.1.0.tgz","integrity":"sha512-Hw7Jnq/19LM4SX+i82RYdbwq9aMMYj0p4rfqSq2BFnmWIdO9cnmCb/A3eygiZRv8COqkR3gnGwaeRyP4q9YINA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGqMafs63wkUi6YkrUkexq7kfhQopBXC/XJLoVcIrjAlAiBOXdhTZdmkcRxOVcBgDK9tcEu0LMZgbo7Ud65u3DJ2eA=="}]},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":"sakura9515@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/css-imports/-/css-imports-0.2.0.tgz","integrity":"sha512-OdVZUggWVuowvrV7wMPAjfwWZzsRRATE6FoVhWMV8irrdAyz4D9bqBMUH7fVvxoSCgkWw96g4A67iHSJHJA++A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGVM8O5WujPO+zX7V8pMelafmOovdteqwN38OetvLKndAiBIujW8B8SdQldjdw5vjhjAk7iHNLxFI9AA1616d541WQ=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":"sakura9515@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/css-imports/-/css-imports-0.2.1.tgz","integrity":"sha512-oZHyHQr6HnzUD+NeZUwj8SX+DadBImLQaniWrCRDIXJPKy2kkiHzF2ICVFyrX7FaBmPvGKLzyvQ8yVgsrFTlgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKnbsYZv0Km9XpZ25tAdihJAieAlELfC62NzRhNgRzGAiBUZ4P844gTyPFxIGS/Zl39kwdFslilB+9zmiXq8lbZZQ=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":"sakura9515@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/css-imports/-/css-imports-0.3.0.tgz","integrity":"sha512-d42Y+MdqeVEXAeuqIUDrdHobGXupHmmAhqOMABIgXZkQ/c9SEP89zOmVahI+b//YyRF6Rtle/E0D5AOrzzzdcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4gzQLNHpCNACKatftbNbsUEIfn4EnE/l8hwY80BDPCwIgVuxqFDsJFuodw4IuG+Uwes9ebfxZX+COvz7/riu8ZrU="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":"sakura9515@gmail.com"}]},"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","tarball":"https://registry.npmjs.org/css-imports/-/css-imports-0.3.1.tgz","integrity":"sha512-nCO0SOsm838kSPGW77jqZZA6H91m6btTjNogRhaaIObcx8SCdqLw1UMV8HidHQgxvOqRMbyA+gIVV6pF64jS3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDerMSgpNwkrC9gJEdEOYtX5nbVLqHm5VWNK2/GZpnNHAiAiEZJRMT1oZwLeafs77nIv2nex8EVn21whCSne2vJtTA=="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"maintainers":[{"name":"popomore","email":"sakura9515@gmail.com"}]}},"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","maintainers":[{"name":"popomore","email":"sakura9515@gmail.com"}],"time":{"modified":"2022-06-14T04:38:48.993Z","created":"2014-03-31T16:45:19.496Z","0.1.0":"2014-03-31T16:45:19.496Z","0.2.0":"2014-04-10T14:43:05.630Z","0.2.1":"2014-05-13T19:45:26.943Z","0.3.0":"2014-05-22T02:04:15.680Z","0.3.1":"2014-08-28T09:07:11.918Z"},"homepage":"https://github.com/popomore/css-imports","repository":{"type":"git","url":"https://github.com/popomore/css-imports"},"author":{"name":"popomore","email":"sakura9515@gmail.com"},"bugs":{"url":"https://github.com/popomore/css-imports/issues"},"license":"MIT","readmeFilename":"README.md","users":{"popomore":true}}