jayfella c97084e992 Initial Commit 5 жил өмнө
..
LICENSE.md c97084e992 Initial Commit 5 жил өмнө
README.md c97084e992 Initial Commit 5 жил өмнө
index.js c97084e992 Initial Commit 5 жил өмнө
package.json c97084e992 Initial Commit 5 жил өмнө

README.md

parse-import Build Status

Parse CSS @import statements.

Install

$ npm install --save parse-import

Usage

var parseImport = require('parse-import');
var str = [
	'@import url("foo.css");',
	'@import "bar.css" only screen and (min-width: 25em);'
].join(' ');

parseImport(str);

/*
[{ 
	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