# gulp-image-embed

> A gulp task for converting images inside a stylesheet to data-URI strings.

Latest version **0.0.2** (published 2014-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-image-embed
pnpm add gulp-image-embed
yarn add gulp-image-embed
bun add gulp-image-embed
```

## 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.2 |
| Published | 2014-12-23 |
| First published | 2014-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | anhulife |
| Maintainers | anhulife |
| Keywords | data, uri, datauri, data-uri, convert, gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-image-embed
- Repository: git@github.com:anhulife/gulp-image-embed
- Homepage: https://github.com/anhulife/gulp-image-embed
- Issues: https://github.com/anhulife/gulp-image-embed/issues
- npm.io page: https://npm.io/package/gulp-image-embed

## Dependencies (3)

- [mime](https://npm.io/package/mime.md) ^1.2.11
- [through2](https://npm.io/package/through2.md) ^0.5.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-12-23
- 0.0.1 — 2014-12-22

## README

gulp-image-embed
===========

> A gulp task for converting images inside a stylesheet to data-URI strings.

## Install

```
npm install --save-dev gulp-image-embed
```

## Examples
```js
var gulp = require('gulp');
var embed = require('gulp-image-embed');

//basic
gulp.task('embed', function(){
  return gulp.src('*.css')
    .pipe(embed({
      asset: 'static'
    }))
    .pipe(gulp.dest('build.css'));
});

//use include
gulp.task('embed', function(){
  return gulp.src('*.css')
    .pipe(embed({
      asset: 'static',
      include: [/dataURI/]
    }))
    .pipe(gulp.dest('build.css'));
});
```

### Options

#### asset: 'static'

The path to assets in your project

#### extension: ['jpg', 'png']

The extension list

#### include: [/dataURI/]

The include list(can has Regexp)

#### exclude: [/noDataURI/]

The exclude list(can has Regexp)

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