0.1.0 • Published 5 years ago

gulp-js2flowchart v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

gulp-js2flowchart

A very basic gulp plugin wrapper for js2flowchart.

Usage

Install with NPM:

npm install --save gulp-js2flowchart

Consume in your gulpfile.js file:

const gulp = require('gulp');
const { plugin } = require('gulp-js2flowchart');
const rename = require('gulp-rename');

gulp.task('js-to-flow-chart', () => {
  return src('./src/fileSystem.js')
    .pipe(plugin())
    .pipe(rename((path) => {
      path.extname = '.svg';
    }))
    .pipe(dest('./output/'));
});

Refer to examples/gulpfile.js for more usage examples.