<commit_before># [metalsmith][metalsmith]-svgo [![Build Status](https://travis-ci.org/ben-eb/metalsmith-svgo.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/metalsmith-svgo.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/metalsmith-svgo.svg)][deps]

> Compress SVG with Metalsmith.

*If you have any issues with the output of this plugin, please use the
[svgo tracker](https://github.com/svg/svgo/issues).*

Install via [npm](https://npmjs.org/package/metalsmith-svgo):

```
npm install metalsmith-svgo --save
```

## Example

```js
var svgo       = require('metalsmith-svgo'),
    Metalsmith = require('metalsmith');

Metalsmith('fixtures')
    .use(svgo())
    .build(function (err) {
        if (err) {
            throw err;
        }
    });
```

With custom options:

```js
Metalsmith('fixtures')
    .use(svgo({
        plugins: [{
            removeDoctype: false
        }, {
            removeComments: false
        }, {
            cleanupNumericValues: {
                floatPrecision: 2
            }
        }, {
            convertColors: {
                names2hex: false,
                rgb2hex: false
            }
        }]
    }))
    .build(function (err) {
        if (err) {
            throw err;
        }
    });
```

## Options

See the [svgo documentation](https://github.com/ben-eb/svgo#options).

## Contributing

Pull requests are welcome. If you add functionality, then please add unit
tests to cover it.

## License

MIT © <NAME>

[ci]:         https://travis-ci.org/ben-eb/metalsmith-svgo
[deps]:       https://gemnasium.com/ben-eb/metalsmith-svgo
[metalsmith]: https://github.com/segmentio/metalsmith
[npm]:        http://badge.fury.io/js/metalsmith-svgo<commit_msg>Update documentation.<commit_after># [metalsmith][metalsmith]-svgo [![Build Status](https://travis-ci.org/ben-eb/metalsmith-svgo.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/metalsmith-svgo.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/metalsmith-svgo.svg)][deps]

> Compress SVG with Metalsmith.

*If you have any issues with the output of this plugin, please use the
[svgo tracker](https://github.com/svg/svgo/issues).*

## Install

With [npm](https://npmjs.org/package/metalsmith-svgo) do:

```
npm install metalsmith-svgo --save
```

## Example

```js
var svgo       = require('metalsmith-svgo'),
    Metalsmith = require('metalsmith');

Metalsmith('fixtures')
    .use(svgo())
    .build(function (err) {
        if (err) {
            throw err;
        }
    });
```

With custom options:

```js
Metalsmith('fixtures')
    .use(svgo({
        plugins: [{
            removeDoctype: false
        }, {
            removeComments: false
        }, {
            cleanupNumericValues: {
                floatPrecision: 2
            }
        }, {
            convertColors: {
                names2hex: false,
                rgb2hex: false
            }
        }]
    }))
    .build(function (err) {
        if (err) {
            throw err;
        }
    });
```

## Options

See the [svgo documentation](https://github.com/svg/svgo).

## Contributing

Pull requests are welcome. If you add functionality, then please add unit
tests to cover it.

## License

MIT © <NAME>

[ci]:         https://travis-ci.org/ben-eb/metalsmith-svgo
[deps]:       https://gemnasium.com/ben-eb/metalsmith-svgo
[metalsmith]: https://github.com/segmentio/metalsmith
[npm]:        http://badge.fury.io/js/metalsmith-svgo
{'fraction_non_alphanumeric': 0.1566542109801667, 'fraction_numerical': 0.0017246335153779822, 'mean_word_length': 2.36231884057971, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2575297', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1160, 'n_words': 219}