gulp-generate-tags

0.0.7 • Public • Published

Gulp Generate Tags

gulp-generate-tags build status

Gulp plugin that will convert txt or csv files into a JSON project. Here is an example on how you set it up in Gulp.

var generateTags = require('gulp-generate-tags')

gulp.task('tags', function () {

  return gulp.src(['app/on-click.tsv', 'app/on-load.tsv'])
    .pipe(generateTags('tags.json'))
    .pipe(gulp.dest('app/tags'))

});  

Options

  • delimiter - default is ',' (comma) to delimit
  • newline - character for new line
var generateTags = require('gulp-generate-tags')

gulp.task('tags', function () {

  return gulp.src(['app/on-click.txt', 'app/on-load.txt'])
    .pipe(generateTags('tags.json', {
      delimiter: '\t'
    }))
    .pipe(gulp.dest('app/tags'))

});  

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-generate-tags

Weekly Downloads

1

Version

0.0.7

License

MIT

Last publish

Collaborators

  • crivas