0.0.7 • Published 9 years ago

gulp-generate-tags v0.0.7

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

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'))

});