# feedback

> Fancier console.log for Node.js cli apps

Latest version **0.3.2** (published 2013-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install feedback
pnpm add feedback
yarn add feedback
bun add feedback
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2013-12-05 |
| First published | 2013-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Scott Corgan |
| Maintainers | scottcorgan |
| Keywords | console, log, cli |

## Links

- npm: https://www.npmjs.com/package/feedback
- Repository: https://github.com/scottcorgan/feedback
- Issues: https://github.com/scottcorgan/feedback/issues
- npm.io page: https://npm.io/package/feedback

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ~0.3.0

## 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

- 0.3.2 (latest) — 2013-12-05
- 0.3.1 — 2013-12-03
- 0.3.0 — 2013-11-06
- 0.2.0 — 2013-11-05
- 0.1.2 — 2013-10-29
- 0.1.1 — 2013-10-29
- 0.0.0 — 2013-10-29

## README

feedback
========

Fancier console.log for Node.js cli apps

## Install

```
npm install feedback --save
```

## Usage

```javascript
var feedback = require('feedback');

// Strips all color from output
feedback.color = false;

//
feeback.write('message') // same as process.stdout
feedback.writeln('message') // same as write() but begins with a new line
feedback.info('message') // same as console.log()
feedback.success('message') // same as console.log(), but adds "Success: " to beginning
feedback.warn('message') // same as console.log(), but adds "Warning: " to beginning
feedback.error('message') // same as console.log() but add "Error: " to beginning
```

## Unit Testing

Feedback provides you with the ability to mute the output to the bash at any time. This is especially useful when you're writing unit tests. You can do this by:

```javascript
var feedback = require('feedback');

feedback.test = true;
feedback.success('Muted message'); // This message won't get printed to the bash

feedback.on('write', function (msg) {
  // Still have access each time a message 
  // should have been written to the bash.
});
```

## Run tests

```
npm install
npm test
```

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