gulp-json

0.1.4 • Public • Published

gulp-json

Usage

Create a json file that you will pipe into the plugin in this format, using json apis.

{
"twitch":"https://api.twitch.tv/kraken",
"pokemon":"http://pokeapi.co/api/v2/pokemon/1/"
}

The plugin outputs a stream of multiple json files that can be piped into gulp.dest("DESTINATION GOES HERE") or you can pipe it into another plugin to do something with these json files. Example gulp pipeline:

var gulp = require('gulp');
var gulpJson = require('gulp-json');
 
 
 gulp.src('api.json')
  .pipe(gulpJson())
  .pipe(gulp.dest('api'));

The output would be piped into the folder api with a twitch.json file and a pokemon.json file both populated with api data.

Package Sidebar

Install

npm i gulp-json

Weekly Downloads

146

Version

0.1.4

License

ISC

Last publish

Collaborators

  • artkash