# svg-checker-loader

> Check SVG files for correct attributes

Latest version **1.0.1** (published 2018-07-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install svg-checker-loader
pnpm add svg-checker-loader
yarn add svg-checker-loader
bun add svg-checker-loader
```

## 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.1 |
| Published | 2018-07-23 |
| First published | 2018-07-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Christian Ebner |
| Maintainers | chrisebner |

## Links

- npm: https://www.npmjs.com/package/svg-checker-loader
- Repository: https://github.com/ChrisEbner/svg-checker-loader
- Issues: https://github.com/ChrisEbner/svg-checker-loader/issues
- npm.io page: https://npm.io/package/svg-checker-loader

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) ^1.3.1
- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0

## Recent versions

- 1.0.1 (latest) — 2018-07-23
- 1.0.0 — 2018-07-23

## README

# SVG-Checker-Loader

This webpack loader checks svg files for necessary attributes and reports to stdout which files lack what.

Requires Webpack.

### Usage

```js
module: {
    rules: [
        {
            test: /\.(svg)$/i,
            use: [
                {
                    loader: 'svg-checker-loader',
                    options: {
                    toCheck: ['viewBox', 'width', 'height']
                    }
                }
            ]   ,
        }
    ]
}
```

Hint: It can also be used to check for other stuff if you know what you are doing.

TODO:
- auto-add missing attributes and fill them
- make hint clearer by renaming the loader

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