# @types/svg4everybody

> TypeScript definitions for svg4everybody

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

## Install

```sh
npm install @types/svg4everybody
pnpm add @types/svg4everybody
yarn add @types/svg4everybody
bun add @types/svg4everybody
```

## 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 | 2.1.5 |
| Published | 2023-11-07 |
| First published | 2017-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.1.5 (latest) — 2023-11-07
- 2.1.2 (ts3.6) — 2021-07-02
- 2.1.1 (ts2.0) — 2019-03-29
- 2.1.4 — 2023-10-18
- 2.1.3 — 2023-09-25
- 2.1.0 — 2017-07-18

## README

# Installation
> `npm install --save @types/svg4everybody`

# Summary
This package contains type definitions for svg4everybody (https://github.com/jonathantneal/svg4everybody#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg4everybody.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/svg4everybody/index.d.ts)
````ts
export as namespace svg4everybody;

export = svg4everybody;

declare function svg4everybody(options?: svg4everybody.Svg4everybodyOpts): void;

declare namespace svg4everybody {
    interface Svg4everybodyOpts {
        attributeName?: string | undefined;
        fallback?(src: string, svg: SVGElement, use: SVGUseElement): string;
        validate?(src: string, svg: SVGElement, use: SVGUseElement): boolean;
        nosvg?: boolean | undefined;
        polyfill?: boolean | undefined;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender), and [bryceosterhaus](https://github.com/bryceosterhaus).

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