wishthis/node_modules/get-imports
2022-01-21 09:28:41 +01:00
..
index.js Add production dependencies 2022-01-21 09:28:41 +01:00
LICENSE.md Add production dependencies 2022-01-21 09:28:41 +01:00
package.json Add production dependencies 2022-01-21 09:28:41 +01:00
README.md Add production dependencies 2022-01-21 09:28:41 +01:00

get-imports Build Status

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