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

});  

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.71latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.71
0.0.60
0.0.50
0.0.40

Package Sidebar

Install

npm i gulp-generate-tags

Weekly Downloads

1

Version

0.0.7

License

MIT

Last publish

Collaborators

  • crivas