1.0.0 • Published 8 years ago

gulp-count-stat v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

gulp-count-stat

Build Status

gulp plugin to show countings on words or characters of files

npm.io

Install

npm install --save-dev gulp-count-stat

Usage

var gulp = require("gulp");
var countStat = require("gulp-count-stat");

gulp.task("stat", function () {
    return gulp.src("chapter-*/**/*.txt")
        .pipe(countStat());
});

gulp.task("total", function () {
    return gulp.src("chapter-*/**/*.txt")
        .pipe(countStat({ showFile: false, showDir: false }));
});

NOTICE: Make sure return is in your gulp task. Otherwise you will get no output.

countStat(options = {})

options

KeyTypeDescriptionDefault
wordsBooleanIf false, omits countings of words from outputtrue
charsBooleanIf false, omits countings of characters from outputtrue
showFileBooleanIf false, omits countings on files from outputtrue
showDirBooleanIf false, omits countings on directories from outputtrue
showTotalBooleanIf false, omits total countings from outputtrue
treeBooleanIf false, show countings in simple list (not tree)true

Testing

npm test

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT (See LICENSE)