parse-import ![Build Status](https://camo.githubusercontent.com/eaa634ada40b3dd51fe8d2a0cfedcb9a05b38915a0157e5344c706dd90ac87a9/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6b657676612f70617273652d696d706f72742e7376673f7374796c653d666c6174)
Parse CSS
@import
statements.
Install
$ npm install --save parse-import
Usage
const parseImport = require('parse-import');
parseImport('@import url("foo.css");\n@import "bar.css" only screen and (min-width: 25em);');
/*
[{
path: 'foo.css',
condition: '',
rule: '@import url("foo.css")'
}, {
path: 'bar.css',
condition: 'only screen and (min-width: 25em)',
rule: '@import "bar.css" only screen and (min-width: 25em)'
}]
*/
License
MIT © Kevin Mårtensson