# import-regex

> Regular expression for matching CSS @imports

Latest version **1.1.0** (published 2014-11-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install import-regex
pnpm add import-regex
yarn add import-regex
bun add import-regex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2014-11-26 |
| First published | 2014-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | css, import, regex |

## Links

- npm: https://www.npmjs.com/package/import-regex
- Repository: https://github.com/kevva/import-regex
- Issues: https://github.com/kevva/import-regex/issues
- npm.io page: https://npm.io/package/import-regex

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2014-11-26
- 1.0.1 — 2014-08-31
- 1.0.0 — 2014-08-31

## README

# import-regex [![Build Status](https://travis-ci.org/kevva/import-regex.svg?branch=master)](https://travis-ci.org/kevva/import-regex)

> Regular expression for matching CSS @imports

## Install

```sh
$ npm install --save import-regex
```

## Usage

```js
var importRegex = require('import-regex');

importRegex().test('@import url(\'foo.css\'); foo bar');
//=> true

importRegex({ exact: true }).test('@import url(\'foo.css\'); foo bar');
//=> false

importRegex({ exact: true }).test('@import url(\'foo.css\');');
//=> true

'foo @import url(\'foo.css\'); bar @import url(\'bar.css\');'.match(importRegex());
//=> ['@import url('foo.css');', '@import url('bar.css');']
```

## License

MIT © [Kevin Mårtensson](http://kevinmartensson.com)

---
_Source: https://npm.io/package/import-regex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
