gulp-humans
v2.0.2
Published
Humans.txt generator for Gulp
Downloads
4
Maintainers
Readme
gulp-humans
Humans.txt generator for Gulp. Simple wrapper around humans-generator. Requires Node 4+. Installed through NPM with:
npm install gulp-humans --save-dev
Check out humans-generator for example options. This module scans your HTML for <meta name="author" />
. Example usage:
var humans = require('gulp-humans');
gulp.task('default', function () {
gulp.src('index.html')
.pipe(humans({
thanks: [
'Node (@nodejs on Twitter)',
'Gulp (@gulpjs on Twitter)'
],
site: [
'Standards: HTML5, CSS3',
'Components: jQuery, Normalize.css',
'Software: Atom'
],
note: 'Built with love by Hayden Bleasel.'
}))
.pipe(gulp.dest('dist/'));
});
If you need an ES5 build for legacy purposes, just require the ES5 file:
var humans = require('gulp-humans/es5');
To build the ES5 version, run the following and remember to require the ES5 version.
npm install -g babel-cli
babel --presets es2015 index.js --out-file es5.js