# @iconsauce/plugin

> This is used as interface for typescript plugins created for iconsauce

Latest version **0.1.0** (published 2026-09-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install @iconsauce/plugin
pnpm add @iconsauce/plugin
yarn add @iconsauce/plugin
bun add @iconsauce/plugin
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2026-09-01 |
| First published | 2022-02-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | Vittorio Vittori |
| Maintainers | vitto, nicola.tamburini.maggioli |
| Keywords | plugin |

## Links

- npm: https://www.npmjs.com/package/@iconsauce/plugin
- Repository: https://github.com/iconsauce/plugin
- Homepage: https://github.com/iconsauce/plugin#readme
- Issues: https://github.com/iconsauce/plugin/issues
- npm.io page: https://npm.io/package/@iconsauce/plugin

## Recent versions

- 0.1.0 (latest) — 2026-09-01
- 0.0.2 — 2025-07-04
- 0.0.1 — 2022-02-16

## README

# @iconsauce/plugin

This plugin is used to ease typescript development of [iconsauce plugins][plugin-mdi-svg].

```typescript
import { dirname } from 'path'
import { IconsaucePlugin } from '@iconsauce/plugin'

const mdiSvgPlugin: IconsaucePlugin = {
  prefix: 'mdi',
  regex: {
    code: /(mdi)(\/{1}[0-9a-z-]+){1,2}/gm,
    lib: /([a-zA-Z_\-/]+\/([0-9a-zA-Z_-]+)\.svg)/,
  },
  selector: (path: RegExpMatchArray) => `mdi/${path[2].replace(/[_]+/g, '-')}`,
  path: `${dirname(require.resolve('@mdi/svg/package.json'))}/**/*.svg`,
}

module.exports = mdiSvgPlugin
```

[plugin-mdi-svg]: https://github.com/iconsauce/plugin-mdi-svg

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