# @hidoo/gulp-plugin-image-placeholder

> Plugin that add image of placeholder for gulp.

Latest version **1.0.0-alpha.4** (published 2025-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hidoo/gulp-plugin-image-placeholder
pnpm add @hidoo/gulp-plugin-image-placeholder
yarn add @hidoo/gulp-plugin-image-placeholder
bun add @hidoo/gulp-plugin-image-placeholder
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.4 |
| Published | 2025-05-29 |
| First published | 2018-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.4.0 |
| Dependencies | 7 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | hidoo |
| Maintainers | hidoo |
| Keywords | gulp, plugin |

## Links

- npm: https://www.npmjs.com/package/@hidoo/gulp-plugin-image-placeholder
- npm.io page: https://npm.io/package/@hidoo/gulp-plugin-image-placeholder

## Dependencies (7)

- [vinyl](https://npm.io/package/vinyl.md) 3.0.0
- [ndarray](https://npm.io/package/ndarray.md) 1.0.19
- [through2](https://npm.io/package/through2.md) 4.0.2
- [fancy-log](https://npm.io/package/fancy-log.md) 2.0.0
- [image-size](https://npm.io/package/image-size.md) 2.0.2
- [save-pixels](https://npm.io/package/save-pixels.md) 2.3.6
- [plugin-error](https://npm.io/package/plugin-error.md) 2.0.1

## Recent versions

- 1.0.0-alpha.4 (latest) — 2025-05-29
- 1.0.0-alpha.1 (next) — 2024-03-26
- 1.0.0-alpha.3 — 2025-05-09
- 1.0.0-alpha.2 — 2025-04-16
- 1.0.0-alpha.0 — 2024-02-09
- 0.19.0 — 2021-06-09
- 0.18.0 — 2021-04-07
- 0.17.0 — 2021-03-31
- 0.16.0 — 2021-03-30
- 0.15.0 — 2020-03-03
- 0.14.1 — 2019-11-22
- 0.14.0 — 2019-11-12
- 0.13.0 — 2019-08-22
- 0.12.0 — 2019-08-02
- 0.11.0 — 2019-07-19
- … 11 more at https://npm.io/package/@hidoo/gulp-plugin-image-placeholder/versions

## README

# @hidoo/gulp-plugin-image-placeholder

> Plugin that add image of placeholder for gulp.

## Installation

```sh
$ npm install --save-dev gulp@next @hidoo/gulp-plugin-image-placeholder
```

## Usage

```js
import { src, dest, task } from 'gulp';
import imagePlaceholder from '@hidoo/gulp-plugin-image-placeholder';

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

## Supported formats

- PNG
- JPEG
- GIF
- SVG

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### imagePlaceholder

return placeholder image.

#### Parameters

- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** option (optional, default `{}`)

  - `options.append` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** append placeholder or not (optional, default `true`)
  - `options.suffix` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** placeholder image suffix (optional, default `'placeholder'`)
  - `options.verbose` **[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** out log or not (optional, default `false`)

#### Examples

```javascript
import { src, dest, task } from 'gulp';
import imagePlaceholder from '@hidoo/gulp-plugin-image-placeholder';

task('placeholder', () =>
  src('/path/to/src')
    .pipe(
      imagePlaceholder({
        append: false,
        suffix: 'placehold',
        verbose: true
      })
    )
    .pipe(dest('/path/to/dest'))
);
```

Returns **DestroyableTransform**&#x20;

## Test

```sh
$ pnpm test
```

## License

MIT

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