# gulp-juicer2js

> A gulp plugin for compiling juicer to js

Latest version **0.0.4** (published 2016-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-juicer2js
pnpm add gulp-juicer2js
yarn add gulp-juicer2js
bun add gulp-juicer2js
```

## 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.4 |
| Published | 2016-07-26 |
| First published | 2016-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jason Dai |
| Maintainers | daizch |
| Keywords | gulp-xtpl2js, gulp, juicer, template, gulp-juicer |

## Links

- npm: https://www.npmjs.com/package/gulp-juicer2js
- Repository: https://github.com/Dijason/gulp-juicer2js
- Homepage: https://github.com/Dijason/gulp-juicer2js#readme
- Issues: https://github.com/Dijason/gulp-juicer2js/issues
- npm.io page: https://npm.io/package/gulp-juicer2js

## Dependencies (3)

- [juicer](https://npm.io/package/juicer.md) ^0.6.14
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7

## Recent versions

- 0.0.4 (latest) — 2016-07-26
- 0.0.3 — 2016-07-26
- 0.0.2 — 2016-07-26
- 0.0.1 — 2016-07-19

## README

# gulp-juicer2js

[![NPM version](https://img.shields.io/npm/v/gulp-juicer2js.svg?style=flat)](https://www.npmjs.com/package/gulp-juicer2js)
[![Build Status](https://secure.travis-ci.org/Dijason/gulp-juicer2js.svg?branch=master)](http://travis-ci.org/Dijason/gulp-juicer2js)

> A [gulp](https://github.com/gulpjs/gulp) plugin to transform the template of juicer to javascript function.

## Usage

Firstly, install `gulp-juicer2js` as a development dependency:

```shell
npm install gulp-juicer2js --save-dev
```

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

**transform the template content of juicer to javascript function:**

```javascript
var juicer2js = require("gulp-juicer2js");

gulp.src("./src/**/*.juicer")
    .pipe(juicer2js())
    .pipe(gulp.dest("build"));
```

** use the transformed js function: **
```javascript
//tpl is the transformed content
var html = tpl({val: 'hello world'});
```

## License

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

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