# time-stamped-console-log

> A simple time stamped message for the console

Latest version **2.0.4** (published 2022-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install time-stamped-console-log
pnpm add time-stamped-console-log
yarn add time-stamped-console-log
bun add time-stamped-console-log
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2022-07-04 |
| First published | 2021-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Browne |
| Maintainers | paul-browne |

## Links

- npm: https://www.npmjs.com/package/time-stamped-console-log
- Repository: https://github.com/Paul-Browne/npm-time-stamped-message
- Homepage: https://github.com/Paul-Browne/npm-time-stamped-message#readme
- Issues: https://github.com/Paul-Browne/npm-time-stamped-message/issues
- npm.io page: https://npm.io/package/time-stamped-console-log

## Dependencies (1)

- [hours-minutes-seconds](https://npm.io/package/hours-minutes-seconds.md) ^2.0.1

## Recent versions

- 2.0.4 (latest) — 2022-07-04
- 2.0.3 — 2022-07-04
- 2.0.2 — 2022-07-04
- 2.0.1 — 2021-10-19
- 2.0.0 — 2021-10-19
- 1.0.2 — 2021-02-14
- 1.0.1 — 2021-02-14
- 1.0.0 — 2021-02-14

## README

# time-stamped-console-log
A simple time stamped console.log()

### usage

`npm i time-stamped-console-log`

or 

`npm i -D time-stamped-console-log`


###### if the time was quarter past nine in the morning

```js
import message from 'time-stamped-console-log';
message("hello world!");  
// 09:15:27 hello world!
```

Options. All options are optional :)

```js
import message from 'time-stamped-console-log';
message("hello world!", {
	time: {
		color: string,
		background: string,
		dim: boolean,			// default: true
		bright: boolean,		// default: false
		underscore: boolean		// default: false
	},
	message: {
		color: string,			
		background: string,
		dim: boolean,			// default: false
		bright: boolean,		// default: false
		underscore: boolean		// default: false
	}	
});  
```

color and background choices are: 

- "red"
- "green"
- "blue"
- "black"
- "yellow"
- "cyan"
- "magenta"
- "white"
- "crimson"

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