gwc

gulp-word-count

Wordcount for gulp

Showing:

Popularity

Downloads/wk

2

GitHub Stars

1

Maintenance

Last Commit

3yrs ago

Contributors

3

Package

Dependencies

3

Size (min+gzip)

23.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Gulp Word Count

Gulp plugin for wordcount.

Usage

var wc = require('gulp-word-count');


gulp.task('wordcount', function() {
  var today = new Date();
  var datetime = [today.getDate(), today.getMonth() + 1, today.getFullYear()].join('_');

  return gulp.src('./book/**/*.md')
    .pipe(wc({ file: 'wc_'+datetime+'.log' }))
    .pipe(gulp.dest('./logs/');

});

Todo

New options to implement:

  • instead of just "file name", allow more options
  • allow for console.logging wordcount and pushing through files
  • allow for saving a file outside of the stream (sounds a little out of scope).

Options

{
  file: 'filename',
  nanoMode: true, // for nano
  campNano: true, // for campnano
  start: 0, // wordcount start
  goal: 100000, // wordcount monthly goal
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100