0.0.4 • Published 8 years ago
gulp-msg v0.0.4
gulp-msg 
gulp plugin for command line notification
Install with npm
npm install gulp-msgUsage
var msg = require('gulp-msg');
msg.Info('--', 'Notice!', '*');
msg.Info ('style: <%= name %>', {name: 'info'});
msg.Success('style: <%= name %>', {name: 'success'});
msg.Warning('style: <%= name %>', {name: 'warning'});
msg.Error ('style: <%= name %>', {name: 'error'});
msg.Note ('style: <%= name %>', {name: 'note'});
msg.Time ('style: <%= name %>', {name: 'time'});
API
info, success, warning, error, note, time
For example info
Use msg.info for each file into the stream
gulp.src('src/**/*')
.pipe(msg.info('Notice!')); //'Notice!' for each fileUse msg.flush.info at the and of the stream
gulp.src('src/**/*')
.pipe(msg.flush.info('Notice!')); //'Notice!' at the and of streamUse msg.Info from the outside of the stream
msg.Info('Notice!'); //'Notice!' in node.js applicationmsg.info(before, message, after,)
Show message
Parameters
before
after
Type: String
Delimiter before/after the message. Each character is repeated 40 times
Usage
msg.Info('--', 'Notice!', '*')data
Type: Object
Data for message. Inherited values:
message
Type: String
Lodash template.
Usage
msg.Info('Enviroment: <%= env.NODE_ENV %>. Foo: <%= foo %>', {foo: bar})
//Enviroment: dev. Foo: barLicense
Copyright (c) 2014-2015 Oleg Istomin Released under the MIT license