# @types/icss-utils

> TypeScript definitions for icss-utils

Latest version **5.1.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/icss-utils
pnpm add @types/icss-utils
yarn add @types/icss-utils
bun add @types/icss-utils
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.1.2 |
| Published | 2023-11-07 |
| First published | 2019-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/icss-utils
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icss-utils
- npm.io page: https://npm.io/package/@types/icss-utils

## Dependencies (1)

- [postcss](https://npm.io/package/postcss.md) ^8.0.0

## Recent versions

- 5.1.2 (latest) — 2023-11-07
- 5.1.0 (ts3.8) — 2021-11-18
- 4.1.0 (ts2.2) — 2019-06-14
- 5.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/icss-utils`

# Summary
This package contains type definitions for icss-utils (https://github.com/css-modules/icss-utils#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icss-utils.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/icss-utils/index.d.ts)
````ts
import { Container, Rule } from "postcss";

export interface Replacements {
    [key: string]: string;
}

export interface CSSImports {
    [key: string]: { [key: string]: string };
}

export interface CSSExports {
    [key: string]: string;
}

export interface ExtractedICSS {
    icssImports: CSSImports;
    icssExports: CSSExports;
}

export function replaceValueSymbols(value: string, replacements: Replacements): string;

export function replaceSymbols(css: Container, replacements: Replacements): void;

export function extractICSS(css: Container, removeRules?: boolean): ExtractedICSS;

export function createICSSRules(imports: CSSImports, exports: CSSExports): Rule[];

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [postcss](https://npmjs.com/package/postcss)

# Credits
These definitions were written by [Bob Matcuk](https://github.com/bmatcuk).

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