# bunyan-couchdb-stream

> A writable stream that writes log JSON objects (as generated by bunyan) to CouchDB / PouchDB

Latest version **0.1.3** (published 2019-07-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bunyan-couchdb-stream
pnpm add bunyan-couchdb-stream
yarn add bunyan-couchdb-stream
bun add bunyan-couchdb-stream
```

## 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.1.3 |
| Published | 2019-07-08 |
| First published | 2015-09-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Sebastien Ballesteros |
| Maintainers | scienceai |
| Keywords | couchdb, bunyan, log, stream |

## Links

- npm: https://www.npmjs.com/package/bunyan-couchdb-stream
- Repository: https://github.com/scienceai/bunyan-couchdb-stream
- Homepage: https://github.com/scienceai/bunyan-couchdb-stream#readme
- Issues: https://github.com/scienceai/bunyan-couchdb-stream/issues
- npm.io page: https://npm.io/package/bunyan-couchdb-stream

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.61.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.1.3 (latest) — 2019-07-08
- 0.1.1 — 2015-09-24
- 0.1.0 — 2015-09-17
- 0.0.1 — 2015-09-08
- 0.0.0 — 2015-09-08

## README

# bunyan-couchdb-stream

[![CircleCI](https://circleci.com/gh/science-periodicals/bunyan-couchdb-stream.svg?style=svg)](https://circleci.com/gh/science-periodicals/bunyan-couchdb-stream)

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

Note: this module is auto published to npm on CircleCI. Only run `npm version
patch|minor|major` and let CI do the rest.

A writable stream that writes log JSON objects (as generated by bunyan) to CouchDB / PouchDB

```js
var bunyan = require('bunyan');
var LogStream = require('bunyan-couchdb-stream');

var log = bunyan.createLogger({
  name: 'test',
  streams: [{
    stream: new LogStream('http://127.0.0.1:5895/mydb'),
    type: 'raw' // this is required
  }],
});

log.info({foo: 'bar'}, 'hello world');
```

If the database does not exists, `bunyan-couchdb-stream` will try to create it.

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