# clout

> Simple logging for CLIs

Latest version **3.0.0** (published 2015-06-30) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.0 |
| Published | 2015-06-30 |
| First published | 2015-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | log, logger, cli |

## Links

- npm: https://www.npmjs.com/package/clout
- Repository: https://github.com/bendrucker/clout
- Homepage: https://github.com/bendrucker/clout#readme
- Issues: https://github.com/bendrucker/clout/issues
- npm.io page: https://npm.io/package/clout

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ~1.0.0
- [to-array](https://npm.io/package/to-array.md) ~0.1.4
- [simple-format](https://npm.io/package/simple-format.md) ~1.0.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
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K 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

## Recent versions

- 3.0.0 (latest) — 2015-06-30
- 2.0.0 — 2015-06-06
- 1.0.2 — 2015-05-08
- 1.0.1 — 2015-05-08
- 1.0.0 — 2015-05-08

## README

# clout [![Build Status](https://travis-ci.org/bendrucker/clout.svg?branch=master)](https://travis-ci.org/bendrucker/clout)

> Ultra-simple logging for CLIs

## Install

```
$ npm install --save clout
```


## Usage

```js
var log = require('clout')('my-tool')
log('hi')
log.error('oh noes')
```

## API

##### `clout(name, [logger])` -> `function`

Creates a logger function with an `error` method.

##### name

*Required*  
Type: `string`

The name of your logger. This will be printed before log messages.

##### logger

Type: `object`  
Default: `console`

An object with `log` and `error` methods that the clout logger will call.

## License

MIT © [Ben Drucker](http://bendrucker.me)

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