# gulp-json-to-js

> gulp-JSONtoJS is a gulp plugin to converted JSON to js files easily.

Latest version **1.0.2** (published 2017-04-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install gulp-json-to-js
pnpm add gulp-json-to-js
yarn add gulp-json-to-js
bun add gulp-json-to-js
```

## 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 | 2017-04-16 |
| First published | 2017-04-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | KILLERMAX91 |
| Maintainers | killermax91 |

## Links

- npm: https://www.npmjs.com/package/gulp-json-to-js
- Repository: https://github.com/KILLERMAX91/GULP-JSONtoJS
- Homepage: https://github.com/KILLERMAX91/GULP-JSONtoJS#readme
- Issues: https://github.com/KILLERMAX91/GULP-JSONtoJS/issues
- npm.io page: https://npm.io/package/gulp-json-to-js

## Dependencies (3)

- [path](https://npm.io/package/path.md) ^0.12.7
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [require-dir](https://npm.io/package/require-dir.md) ^0.3.1

## Recent versions

- 1.0.2 (latest) — 2017-04-16
- 1.0.1 — 2017-04-14
- 1.0.0 — 2017-04-14

## README

# gulp-json-to-js

gulp-json-to-js is a [gulp](https://github.com/wearefractal/gulp) plugin to converted JSON to js files easily.

you should install `npm install gulp-json-to-js`

### Exemple

```javascript
var gulp = require('gulp');
var JSONtoJS = require('gulp-json-to-js');

var base = function () {
    return gulp.src('./test/modele/base.json')
        .pipe(JSONtoJS())
        .pipe(gulp.dest('./test/cache/test1'));
};
gulp.task('base', [], base);
```

**or**

```javascript
var gulp = require('gulp');
var JSONtoJS = require('gulp-json-to-js');

var base = function () {
    return gulp.src('./test/modele/base.json')
        .pipe(JSONtoJS({nameVariableSufix:'Suffix'}))
        .pipe(gulp.dest('./test/cache/test1'));
};
gulp.task('base', [], base);
```
for rename the end variable.

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