# gulp-replace-placeholder-image

> Release all .jpg/.jpeg/.png/.gif/.svg to placeholder image, others will be copied by default.

Latest version **1.0.2** (published 2018-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-replace-placeholder-image
pnpm add gulp-replace-placeholder-image
yarn add gulp-replace-placeholder-image
bun add gulp-replace-placeholder-image
```

## 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.2 |
| Published | 2018-12-27 |
| First published | 2018-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 8 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | simplylouis |

## Links

- npm: https://www.npmjs.com/package/gulp-replace-placeholder-image
- npm.io page: https://npm.io/package/gulp-replace-placeholder-image

## Dependencies (8)

- [vinyl](https://npm.io/package/vinyl.md) ^2.2.0
- [ndarray](https://npm.io/package/ndarray.md) ^1.0.18
- [through2](https://npm.io/package/through2.md) ^3.0.0
- [fancy-log](https://npm.io/package/fancy-log.md) ^1.3.3
- [get-stream](https://npm.io/package/get-stream.md) ^4.1.0
- [image-size](https://npm.io/package/image-size.md) ^0.6.3
- [save-pixels](https://npm.io/package/save-pixels.md) ^2.3.4
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Recent versions

- 1.0.2 (latest) — 2018-12-27
- 1.0.1 — 2018-12-27

## README

# gulp-replace-image-placeholder

> Release all .jpg/.jpeg/.png/.gif/.svg to placeholder image, others will be copied by default.

## Installation

```sh
$ npm i --save-dev gulp-replace-image-placeholder
```

## Supported formats

-   PNG
-   JPEG
-   GIF
-   SVG

### imagePlaceholder

return placeholder image.

#### Examples

```javascript
import imagePlaceholder from 'gulp-plugin-image-placeholder';
//or
imagePlaceholder from 'gulp-plugin-image-placeholder'.default;

task('placeholder', () => src('/path/to/src/*')
  .pipe(imagePlaceholder())
  .pipe(dest('/path/to/dest'))):
```

## License

MIT

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