# gulp-message

> Emit clean, readable log messages from gulp tasks

Latest version **1.0.4** (published 2017-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-message
pnpm add gulp-message
yarn add gulp-message
bun add gulp-message
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-07-19 |
| First published | 2017-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kim Burgess |
| Maintainers | kimburgess, yuion |
| Keywords | gulp, gulp-plugin, typescript |

## Links

- npm: https://www.npmjs.com/package/gulp-message
- Repository: https://github.com/acaproject/gulp-message
- Homepage: https://github.com/acaprojects/gulp-message#readme
- Issues: https://github.com/acaprojects/gulp-message/issues
- npm.io page: https://npm.io/package/gulp-message

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^2.0.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [@types/chalk](https://npm.io/package/@types/chalk.md) ^0.4.31
- [@types/gulp-util](https://npm.io/package/@types/gulp-util.md) ^3.0.31

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2017-07-19
- 1.0.3 — 2017-07-19
- 1.0.2 — 2017-06-07
- 1.0.1 — 2017-06-06
- 1.0.0 — 2017-06-05

## README

# gulp-message

[![Build Status](https://travis-ci.org/acaprojects/gulp-message.svg?branch=master)](https://travis-ci.org/acaprojects/gulp-message)
[![Code Climate](https://codeclimate.com/github/acaprojects/gulp-message/badges/gpa.svg)](https://codeclimate.com/github/acaprojects/gulp-message)
[![Dependencies Status](https://david-dm.org/acaprojects/gulp-message/status.svg)](https://david-dm.org/acaprojects/gulp-message)
[![npm version](https://badge.fury.io/js/gulp-message.svg)](https://badge.fury.io/js/gulp-message)

Emit clean, readable log messages from gulp tasks

## Usage

### 1. Get the package

    npm install --save gulp-message

### 2. Import it

Javascript:
```javascript
const message = require('gulp-message');
```

Typescript / ES6:
```typescript
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

```javascript
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.

Option  | Description                                       | Default
------- | ------------------------------------------------- | ---------
prefix  | A prefix to append to all outgoing messages - either a string, or `[string, style]` tuple    | ''
style   | The style to apply to the message body            | none
writer  | The log message emitter                           | `gutil.log`

Example:
```javascript
const tableFlip = message.logger({
    prefix: '(ノಠ益ಠ)ノ彡┻━┻'
})

tableFlip('Breath in, breath out.')
=> '(ノಠ益ಠ)ノ彡┻━┻ Breathe in, breathe out.'
```

---
_Source: https://npm.io/package/gulp-message · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
