# @types/postcss-inline-svg

> TypeScript definitions for postcss-inline-svg

Latest version **5.0.4** (published 2024-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/postcss-inline-svg
pnpm add @types/postcss-inline-svg
yarn add @types/postcss-inline-svg
bun add @types/postcss-inline-svg
```

## 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.0.4 |
| Published | 2024-08-23 |
| First published | 2021-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 5.0.4 (latest) — 2024-08-23
- 5.0.3 (ts4.7) — 2023-11-07
- 5.0.0 (ts3.8) — 2021-09-04
- 5.0.2 — 2023-10-18
- 5.0.1 — 2023-09-24

## README

# Installation
> `npm install --save @types/postcss-inline-svg`

# Summary
This package contains type definitions for postcss-inline-svg (https://github.com/TrySound/postcss-inline-svg).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-inline-svg.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-inline-svg/index.d.ts)
````ts
import { PluginCreator } from "postcss";

declare namespace postcssInlineSvg {
    interface Options {
        /**
         * Array of paths to resolve URL. Paths are tried in order, until an existing file is found.
         * If omitted, path will be relative to source file if it was specified
         */
        paths?: readonly string[];

        /**
         * Removes all `fill` attributes before applying specified. Passed `RegExp` filters files by ID
         * @default false
         */
        readonly removeFill?: RegExp | boolean;

        /**
         * Removes all `stroke` attributes before applying specified. Passed `RegExp` filters files by ID
         * @default false
         */
        removeStroke?: RegExp | boolean;

        /**
         * Processes SVG after applying parameters
         */
        encode?: (svg: string) => string;

        /**
         * Transforms SVG after `encode` function and generates URL
         */
        transform?: (svg: string, path: string) => string;

        /**
         * Adds `xmlns` attribute to SVG if not present
         * @default true
         */
        xmlns?: boolean;
    }
}

declare const postcssInlineSvg: PluginCreator<postcssInlineSvg.Options>;

export = postcssInlineSvg;

````

### Additional Details
 * Last updated: Fri, 23 Aug 2024 18:08:51 GMT
 * Dependencies: [postcss](https://npmjs.com/package/postcss)

# Credits
These definitions were written by .

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