New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gulp-message

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-message

Emit clean, readable log messages from gulp tasks

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
2
Created
Source

gulp-message

Build Status Code Climate Dependencies Status npm version

Emit clean, readable log messages from gulp tasks

Usage

1. Get the package

npm install --save gulp-message

2. Import it

Javascript:

const message = require('gulp-message');

Typescript / ES6:

import * as message from 'gulp-message';

Types are bundled with the published package and will be automatically imported.

3. Use it in your gulp tasks

gulp.task('foo', () => {
    message.warn(`Well that's not quite right...`);
});

API

message.error(string)

Emit an error message.

message.warn(string)

Emit an warning message.

message.info(string)

Emit an info message.

message.debug(string)

Emit an debug message.

logger(opts)

Create a custom log emitter.

OptionDescriptionDefault
prefixA prefix to append to all outgoing messages - either a string, or [string, style] tuple''
styleThe style to apply to the message bodynone
writerThe log message emittergutil.log

Example:

const tableFlip = message.logger({
    prefix: '(ノಠ益ಠ)ノ彡┻━┻'
})

tableFlip('Breath in, breath out.')
=> '(ノಠ益ಠ)ノ彡┻━┻ Breathe in, breathe out.'

Keywords

gulp

FAQs

Package last updated on 19 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts