1.0.0 • Published 9 years ago

get-imports v1.0.0

Weekly downloads
39,853
License
MIT
Repository
github
Last release
9 years ago

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