# log-pattern

> Pattern-defined log formatter

Latest version **0.0.13** (published 2017-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install log-pattern
pnpm add log-pattern
yarn add log-pattern
bun add log-pattern
```

## 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.0.13 |
| Published | 2017-08-10 |
| First published | 2015-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kba |
| Maintainers | kba |

## Links

- npm: https://www.npmjs.com/package/log-pattern
- Repository: https://github.com/kba/log-pattern
- Homepage: https://github.com/kba/log-pattern#readme
- Issues: https://github.com/kba/log-pattern/issues
- npm.io page: https://npm.io/package/log-pattern

## Dependencies (8)

- [pad](https://npm.io/package/pad.md) ^1.0.0
- [uniq](https://npm.io/package/uniq.md) ^1.0.1
- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [cycle](https://npm.io/package/cycle.md) ^1.0.3
- [find-up](https://npm.io/package/find-up.md) ^1.1.0
- [memoizee](https://npm.io/package/memoizee.md) ^0.3.9
- [dateformat](https://npm.io/package/dateformat.md) ^1.0.12
- [read-pkg-up](https://npm.io/package/read-pkg-up.md) ^1.0.1

## Recent versions

- 0.0.13 (latest) — 2017-08-10
- 0.0.12 — 2016-07-21
- 0.0.11 — 2016-07-18
- 0.0.10 — 2016-05-05
- 0.0.9 — 2016-05-04
- 0.0.8 — 2016-01-27
- 0.0.7 — 2016-01-27
- 0.0.6 — 2016-01-18
- 0.0.5 — 2016-01-15
- 0.0.4 — 2016-01-07
- 0.0.3 — 2015-12-30
- 0.0.2 — 2015-12-30
- 0.0.1 — 2015-12-29

## README

log-pattern
-----------
Formatter for logging output, targeted at winston

<!-- :GenTocGFM -->
* [Description](#description)
* [Installation](#installation)
* [Usage](#usage)
* [Macros](#macros)

## Description

...

## Installation

```
npm install --save log-pattern
```

## Usage

```js
var LogPattern = require('log-pattern');
fmt = LogPattern.formatter({ pattern: '%date{yyyy} - %uc(%path)' });
console.log(fmt.format({filename: '/bar/quux'}))
// -> "2016 - /BAR/QUUX"
```

## Macros

See [MACROS.md](./MACROS.md)

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