# node-msg

> node msg logger/formatter with colours

Latest version **1.2.3** (published 2015-04-24) · 0 weekly downloads

## Install

```sh
npm install node-msg
pnpm add node-msg
yarn add node-msg
bun add node-msg
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2015-04-24 |
| First published | 2013-09-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tom |
| Maintainers | tborychowski |
| Keywords | log, msg, message, formatter |

## Links

- npm: https://www.npmjs.com/package/node-msg
- Repository: https://github.com/tborychowski/node-msg
- Issues: https://github.com/tborychowski/node-msg/issues
- npm.io page: https://npm.io/package/node-msg

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.2.3 (latest) — 2015-04-24
- 1.2.2 — 2014-03-24
- 1.2.1 — 2014-02-21
- 1.2.0 — 2014-02-20
- 1.1.3 — 2013-11-08
- 1.1.2 — 2013-11-07
- 1.1.1 — 2013-09-12

## README

node-msg
========

Node message formatter


Install
-------

	npm install node-msg

	
Usage
-----

**test.js**
````javascript
	var Msg = require('node-msg');

	Msg.beep(2);
	Msg.log('This is a double beep!\n');

	Msg.error('This is error');
	Msg.success('This is success message');

	Msg.log(
		Msg.blue('\nThis is blue text') + ', ' +
		Msg.cyan('\nThis is cyan text') + ', ' +
		Msg.green('\nThis is green text') + ', ' +
		Msg.grey('\nThis is grey text') + ', ' +
		Msg.magenta('\nThis is magenta text') + ', ' +
		Msg.red('\nThis is red text') + ', ' +
		Msg.yellow('\nThis is yellow text') + ', ' +
		Msg.white('\nThis is white text') + ', ' +

		Msg.paint('\n\nThis is bold blue text', 'bold blue') + ', ' +
		Msg.paint('\nThis is bold cyan text', 'bold cyan') + ', ' +
		Msg.paint('\nThis is bold green text', 'bold green') + ', ' +
		Msg.paint('\nThis is bold grey text', 'bold grey') + ', ' +
		Msg.paint('\nThis is bold magenta text', 'bold magenta') + ', ' +
		Msg.paint('\nThis is bold red text', 'bold red') + ', ' +
		Msg.paint('\nThis is bold yellow text', 'bold yellow') + ', ' +
		Msg.paint('\nThis is bold white text', 'bold white')
	);

	Msg.log('\n\nAnd this is a table:\n');

	Msg.table([
		[ 'ID', 'String', 'Size' ],
		[ '1', 'String 1', '10 KB' ],
		[ '2', 'String 2', '20 KB' ],
		[ '3', 'String 3', '30 KB' ],
		[ '4', 'String 4', '40 KB' ],
		[ '5', 'String 5', '50 KB' ],
		[ '6', 'String 6', '60 KB' ],
		[ '7', 'String 7', '70 KB' ],
		[ '8', 'String 8', '80 KB' ],
		[ '9', 'String 9', '90 KB' ],
		[ '10', 'String 10 is the longest', '100 KB' ],
	]);

	var loader = new Msg.loading('Loading');
	setTimeout(function () { loader.stop('....OK'); }, 2000);
````


**Output**

![sample-output](https://github.com/tborychowski/node-msg/raw/master/sample-output.png "Sample output")

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