# npmdatelog

> Extends npmlog and adds functionality for user to add date to log entry

Latest version **0.0.2** (published 2015-06-15) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2015-06-15 |
| First published | 2014-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Geoff Lancaster |
| Maintainers | geofflancaster |
| Keywords | npmlog, date, log, npmdatelog |

## Links

- npm: https://www.npmjs.com/package/npmdatelog
- Repository: https://github.com/geofflancaster/npmdatelog
- Issues: https://github.com/geofflancaster/npmdatelog/issues
- npm.io page: https://npm.io/package/npmdatelog

## Dependencies (3)

- [extend](https://npm.io/package/extend.md) >=2.0.0
- [moment](https://npm.io/package/moment.md) >=2.8.4
- [npmlog](https://npm.io/package/npmlog.md) >=0.1.1

## 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.0.2 (latest) — 2015-06-15
- 0.0.1 — 2014-12-22

## README

npmdatelog
==========

This package leverages npmlog to add a timestamp to each log record

For general usage, see https://github.com/npm/npmlog

==========

#Basic Usage

```
var log = require('npmdatelog')

log.enableDate('YYYY-MM-DD HH:mm:ss') // If you do not specify a format, the ISO format will be used

// additional stuff ---------------------------+
// message ----------+                         |
// prefix ----+      |                         |
// level -+   |      |                         |
//        v   v      v                         v
  log.info('fyi', 'I have a kitty cat: %j', myKittyCat)
```

##Disable Date

```
log.disableDate()
```

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