# svg-resizer

> node.js ClI utility to resize SVGs

Latest version **0.0.1** (published 2015-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install svg-resizer
pnpm add svg-resizer
yarn add svg-resizer
bun add svg-resizer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-07-14 |
| First published | 2015-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+8 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 56 |
| Author | vieron |
| Maintainers | gilbox |

## Links

- npm: https://www.npmjs.com/package/svg-resizer
- Repository: https://github.com/vieron/svg-resizer
- Homepage: https://github.com/vieron/svg-resizer#readme
- Issues: https://github.com/vieron/svg-resizer/issues
- npm.io page: https://npm.io/package/svg-resizer

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ~2.4.1
- [nomnom](https://npm.io/package/nomnom.md) ~1.6.2
- [xml2js](https://npm.io/package/xml2js.md) ~0.4.2
- [shelljs](https://npm.io/package/shelljs.md) ~0.2.6
- [fs-extra](https://npm.io/package/fs-extra.md) ~0.8.1

## Recent versions

- 0.0.1 (latest) — 2015-07-14

## README

# svg-resizer

Basic cli utility to batch resize svg files

# Requirements

Svg-resizer requires `libsrvg2` to resize SVG files.

Install it with `sudo apt-get install librsvg2-bin` on Linux or with `brew install librsvg` on OSX.

# Usage

    $ ./svg-resizer.js -f -x 20 -y 20 -o example/resized/ example/*.svg

# Options

- **width** `-x` `--width`

  Output SVG width.

- **height** `-y` `--height`

  Output SVG height.

- **fit** `-f` `--fit`

  Fit to specified dimensions preserving aspect ratio.

- **format** `-e` `--format`

  Output format, but default is `svg` but can be `png`, `pdf`, `ps`, `svg` or `xml`.

- **output** `-o` `--output`

  Destination folder.

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