# gulp-ejs-json

> > ejs gulp plugin: static controller with ejs(template engine)

Latest version **0.0.7** (published 2019-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-ejs-json
pnpm add gulp-ejs-json
yarn add gulp-ejs-json
bun add gulp-ejs-json
```

## 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.7 |
| Published | 2019-05-14 |
| First published | 2015-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 4 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | woods-ming |
| Maintainers | woods-ming |
| Keywords | gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-ejs-json
- Repository: https://github.com/woods-ming/gulp-ejs-json
- Homepage: https://github.com/woods-ming/gulp-ejs-json#readme
- Issues: https://github.com/woods-ming/gulp-ejs-json/issues
- npm.io page: https://npm.io/package/gulp-ejs-json

## Dependencies (4)

- [ejs](https://npm.io/package/ejs.md) ^2.6.1
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [replace-ext](https://npm.io/package/replace-ext.md) 1.0.0
- [plugin-error](https://npm.io/package/plugin-error.md) ^1.0.1

## Recent versions

- 0.0.7 (latest) — 2019-05-14
- 0.0.6 — 2019-05-14
- 0.0.5 — 2019-01-11
- 0.0.4 — 2019-01-11
- 0.0.3 — 2019-01-11
- 0.0.2 — 2015-04-14
- 0.0.1 — 2015-04-14
- 0.0.0 — 2015-04-13

## README

# gulp-ejs-json [![Build Status](https://travis-ci.org/woods-ming/gulp-ejs-json.svg?branch=master)](https://travis-ci.org/woods-ming/gulp-ejs-json)

> ejs gulp plugin: static controller with ejs(template engine)


## Install

```
$ npm install --save-dev gulp-ejs-json
```


## Usage

```js
var gulp = require('gulp');
var ejsJson = require('gulp-ejs-json');
var gutil = require('./node_modules/gulp/node_modules/gulp-util');

gulp.task('default', function() {
	return gulp.src('models/demo.json')
	    .pipe(ejsJson({ filename: 'views/demo.ejs' }).on('error', gutil.log))
	    .pipe(gulp.dest('dist'));
});
```


## API

### ejsJson(options)

#### options(as ejs options)

##### filename

Type: `string`  
Default: `null`

view path: 'views/demo.ejs'.


## License

MIT © [woods-ming](https://github.com/woods-ming)

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