503 B
503 B
get-imports
Get CSS @imports from a string
Install
$ npm install --save get-imports
Usage
var getImports = require('get-imports');
var str = '@import url(\'foo.css\'); foo @import url(\'bar.css\'); bar';
getImports(str);
//=> ['@import url('foo.css');', '@import url('bar.css');']
License
MIT © Kevin Mårtensson