parse-import

WebJar for parse-import

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

parse-import
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

parse-import
WebJar for parse-import
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/kevva/parse-import

Download parse-import

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/parse-import/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>parse-import</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/parse-import/
implementation 'org.webjars.npm:parse-import:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/parse-import/
implementation ("org.webjars.npm:parse-import:2.0.0")
'org.webjars.npm:parse-import:jar:2.0.0'
<dependency org="org.webjars.npm" name="parse-import" rev="2.0.0">
  <artifact name="parse-import" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='parse-import', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "parse-import" % "2.0.0"
[org.webjars.npm/parse-import "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm » get-imports jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

parse-import Build Status

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

Versions

Version
2.0.0