# moment-logger

> Logging with timestamps

Latest version **1.0.5-12** (published 2022-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install moment-logger
pnpm add moment-logger
yarn add moment-logger
bun add moment-logger
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5-12 |
| Published | 2022-04-26 |
| First published | 2021-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 50.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Ibia |
| Maintainers | boxpositron |
| Keywords | terminal, cli, logging, logger, timestamp |

## Links

- npm: https://www.npmjs.com/package/moment-logger
- Repository: https://github.com/boxpositron/moment-logger
- Homepage: https://momentlogger.com
- Issues: https://github.com/boxpositron/moment-logger/issues
- npm.io page: https://npm.io/package/moment-logger

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [tslib](https://npm.io/package/tslib.md) ^2.3.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

- 1.0.5-12 (latest) — 2022-04-26
- 1.0.5-11 — 2022-04-26
- 1.0.5-10 — 2022-02-04
- 1.0.5-9 — 2022-02-04
- 1.0.5-8 — 2022-02-03
- 1.0.5-7 — 2022-02-03
- 1.0.5-6 — 2022-01-30
- 1.0.5-5 — 2022-01-30
- 1.0.5-4 — 2022-01-10
- 1.0.5-3 — 2022-01-09
- 1.0.5-2 — 2021-11-23
- 1.0.5-1 — 2021-11-23
- 1.0.5 — 2021-11-23
- 1.0.4-4 — 2021-07-31
- 1.0.4-3 — 2021-07-23
- … 3 more at https://npm.io/package/moment-logger/versions

## README

![Node.js Package](https://github.com/boxpositron/moment-logger/workflows/Node.js%20Package/badge.svg)

# Moment Logger
>Fancy terminal logging with timestamps


## Installing

Using npm: 

```bash
$ npm install moment-logger
```


Using yarn:

```bash
$ yarn add moment-logger
```


## Example

**CommonJS Usage**

>In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with require() use the following approach:

```js
const logger = require('moment-logger').default;

# Display hello world

logger.log('Hello world');

# Display world object

const worldObject = {
    earth: ['Water', 'Earth', 'Air', 'Fire']
};

logger.log(worldObject);

```

**ES6 Usage**
```ts
import logger from 'moment-logger';

# Display hello world

logger.log('Hello world');

# Display world object

const worldObject = {
    earth: ['Water', 'Earth', 'Air', 'Fire']
};

logger.log(worldObject);


```

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