# triple-beam

> Definitions of levels for logging purposes & shareable Symbol constants.

Latest version **1.4.1** (published 2023-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install triple-beam
pnpm add triple-beam
yarn add triple-beam
bun add triple-beam
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2023-07-10 |
| First published | 2017-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/triple-beam) |
| Module format | CommonJS |
| Node | >= 14.0.0 |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Author | Charlie Robbins |
| Maintainers | indexzero, dabh |
| Keywords | winstonjs, winston, logging, logform, symbols, logs, levels |

## Links

- npm: https://www.npmjs.com/package/triple-beam
- Repository: https://github.com/winstonjs/triple-beam
- Homepage: https://github.com/winstonjs/triple-beam#readme
- Issues: https://github.com/winstonjs/triple-beam/issues
- npm.io page: https://npm.io/package/triple-beam

## 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.4.1 (latest) — 2023-07-10
- 1.4.0 — 2023-07-10
- 1.3.0 — 2018-05-24
- 1.2.0 — 2018-04-25
- 1.1.0 — 2017-09-30
- 1.0.1 — 2017-09-29
- 1.0.0 — 2017-09-29

## README

# triple-beam

Definitions of levels for logging purposes & shareable Symbol constants.

## Usage

``` js
const { LEVEL } = require('triple-beam');
const colors = require('colors/safe');

const info = {
  [LEVEL]: 'error',
  level: 'error',
  message: 'hey a logging message!'
};

// Colorize your log level!
info.level = colors.green(info.level);

// And still have an unmutated copy of your level!
console.log(info.level === 'error');  // false
console.log(info[LEVEL] === 'error'); // true
```

## Tests

Tests are written with `mocha`, `assume`, and `nyc`. They can be run with `npm`:

```
npm test
```

##### LICENSE: MIT
##### AUTHOR: [Charlie Robbins](https://github.com/indexzero)

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