# date-stream

> Provides an automated rotational stream based on date.

Latest version **1.0.2** (published 2016-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install date-stream
pnpm add date-stream
yarn add date-stream
bun add date-stream
```

## 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 | 1.0.2 |
| Published | 2016-07-19 |
| First published | 2016-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lanfei |
| Maintainers | clanfei |
| Keywords | log, logger, stream, logrotate, express, connect, morgan |

## Links

- npm: https://www.npmjs.com/package/date-stream
- Repository: https://github.com/Lanfei/node-date-stream
- Homepage: https://github.com/Lanfei/node-date-stream#readme
- Issues: https://github.com/Lanfei/node-date-stream/issues
- npm.io page: https://npm.io/package/date-stream

## Dependencies (1)

- [dateformat](https://npm.io/package/dateformat.md) ^1.0.12

## 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.0.2 (latest) — 2016-07-19
- 1.0.1 — 2016-03-07
- 1.0.0 — 2016-03-07

## README

# node-date-stream [![NPM version][npm-image]][npm-url]
Provides an automated rotational stream based on date.

## Usage

```js
var dateStream = require('date-stream');
var stream = dateStream.getStream('access.log', 'yyyymmdd');
// express/morgan
app.use(morgan('combined', {stream: stream}));
```

## API

### .getStream(filename, format, timezone, separator)

#### filename

Type: `String`

#### format

Type: `String`

Default: `yyyymmdd`

#### timezone

Type: `Number`

Default: `8`

#### separator

Type: `String`

Default: `-`

[npm-url]: https://npmjs.org/package/date-stream
[npm-image]: https://badge.fury.io/js/date-stream.svg

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