Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/runnerty/notifier-console

Runnerty module: Console notifier.
https://github.com/runnerty/notifier-console

console log notifier runnerty

Last synced: about 1 month ago
JSON representation

Runnerty module: Console notifier.

Awesome Lists containing this project

README

        





Smart Processes Management

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]

code style: prettier

A simple console notifier for [Runnerty]

### Installation:
Through NPM

```bash
npm i @runnerty/notifier-console
```

You can also add modules to your project with [runnerty]

```bash
npx runnerty add @runnerty/notifier-console
```

This command installs the module in your project, adds example configuration in your [config.json] and creates an example plan of use.

If you have installed [runnerty] globally you can include the module with this command:

```bash
runnerty add @runnerty/notifier-console
```
### Configuration sample:
Add in [config.json]:

```json
{
"notifiers": [
{
"id": "console_default",
"type": "@runnerty-notifier-console"
}
]
}
```

# Usage

Define the type of console message that you need (or prefer) in your process' events

## info mode
![info notification on console](http://i.imgur.com/IKHy3vC.png)

```json
{
"notifications": {
"on_end": [
{
"id": "console_default",
"message": "Things done right.",
"mode": "info"
}
]
}
```

## warn mode
![warning notification on console](http://i.imgur.com/TdMmGQz.png)

```json
{
"id": "console_default",
"message": "We are out of candy!",
"mode": "warn"
}
```

## error mode
![error notification on console](http://i.imgur.com/s2D0DxD.png)

```json
{
"id": "console_default",
"message": "Oh no.",
"mode": "error"
}
```

[Runnerty]: https://www.runnerty.io
[downloads-image]: https://img.shields.io/npm/dm/@runnerty/notifier-console.svg
[npm-url]: https://www.npmjs.com/package/@runnerty/notifier-console
[npm-image]: https://img.shields.io/npm/v/@runnerty/notifier-console.svg
[david-badge]: https://david-dm.org/runnerty/notifier-console.svg
[david-badge-url]: https://david-dm.org/runnerty/notifier-console
[config.json]: http://docs.runnerty.io/config/
[plan.json]: http://docs.runnerty.io/plan/