<commit_before># gulp-raster
[![NPM version][npm-image]][npm-url] [![Dependency Status][depstat-image]][depstat-url]

> raster plugin for [gulp](https://github.com/wearefractal/gulp)

## Usage

First, install `gulp-raster` as a development dependency:

```shell
npm i -D gulp-raster
```

Then, add it to your `gulpfile.js`:

```javascript
var raster = require("gulp-raster");
var rename = require("gulp-rename");

gulp.src('./src/**/svg/*.svg')
    .pipe(tasks.raster())
    .pipe(tasks.rename({extname: '.png'})
    .pipe(gulp.dest('./dist')),
```

You also can specify scale and file format. Let`s say you want get icon set for retina:

```javascript
var raster = require("gulp-raster");
var rename = require("gulp-rename");

gulp.src('./src/**/svg/*.svg')
    .pipe(tasks.raster({format: 'jpg', scale: 2}))
    .pipe(tasks.rename({extname: '.jpg', suffix: '-2x'})
    .pipe(gulp.dest('./dist')),
```

## API

### raster(options)

#### options.scale
Type: `Number`
Default: 1

Set scale rate of output image.

#### options.format
Type: `String`
Default: `png`

Set output file format, png/jpg are available.

## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License)

[npm-url]: https://npmjs.org/package/gulp-raster
[npm-image]: https://badge.fury.io/js/gulp-raster.png

[depstat-url]: https://david-dm.org/otouto/gulp-raster
[depstat-image]: https://david-dm.org/otouto/gulp-raster.png<commit_msg>correct readme<commit_after># gulp-raster
[![NPM version][npm-image]][npm-url] [![Dependency Status][depstat-image]][depstat-url]

> Rasterization plugin for [gulp](https://github.com/wearefractal/gulp). It`s build on phantomjs and looks pretty much like svg2png, but output file content instead of saving it to disk. 

## Usage

First, install `gulp-raster` as a development dependency:

```shell
npm i -D gulp-raster
```

Then, add it to your `gulpfile.js`:

```javascript
var raster = require('gulp-raster');
var rename = require('gulp-rename');

gulp.src('./src/**/svg/*.svg')
    .pipe(raster())
    .pipe(rename({extname: '.png'})
    .pipe(gulp.dest('./dist')),
```

You also can specify scale and file format. Let`s say you want get icon set for retina:

```javascript
var raster = require('gulp-raster');
var rename = require('gulp-rename');

gulp.src('./src/**/svg/*.svg')
    .pipe(raster({format: 'jpg', scale: 2}))
    .pipe(rename({extname: '.jpg', suffix: '-2x'})
    .pipe(gulp.dest('./dist')),
```

## API

### raster(options)

#### options.scale
Type: `Number`
Default: `1`

Set scale rate of output image.

#### options.format
Type: `String`
Default: `png`

Set output file format, png/jpg are available.

## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License)

[npm-url]: https://npmjs.org/package/gulp-raster
[npm-image]: https://badge.fury.io/js/gulp-raster.png

[depstat-url]: https://david-dm.org/otouto/gulp-raster
[depstat-image]: https://david-dm.org/otouto/gulp-raster.png
{'fraction_non_alphanumeric': 0.19904240766073872, 'fraction_numerical': 0.0023939808481532147, 'mean_word_length': 4.327868852459017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, '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': '2028349', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1073, 'n_words': 242}