# get-imports

> Get CSS @imports from a string

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

## Install

```sh
npm install get-imports
pnpm add get-imports
yarn add get-imports
bun add get-imports
```

## 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.0.0 |
| Published | 2014-11-26 |
| First published | 2014-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | css, import, string |

## Links

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

## Dependencies (2)

- [array-uniq](https://npm.io/package/array-uniq.md) ^1.0.1
- [import-regex](https://npm.io/package/import-regex.md) ^1.1.0

## 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.0.0 (latest) — 2014-11-26

## README

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

> Get CSS @imports from a string

## Install

```sh
$ npm install --save get-imports
```

## Usage

```js
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](http://kevinmartensson.com)

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