# new-console

> to optimize console

Latest version **1.0.8** (published 2019-02-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install new-console
pnpm add new-console
yarn add new-console
bun add new-console
```

## 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.8 |
| Published | 2019-02-05 |
| First published | 2017-12-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | valavan |
| Maintainers | valavan |
| Keywords | console, timestamp console, color console, color console with timestamp |

## Links

- npm: https://www.npmjs.com/package/new-console
- npm.io page: https://npm.io/package/new-console

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.0.8 (latest) — 2019-02-05
- 1.0.7 — 2019-02-05
- 1.0.6 — 2019-02-05
- 1.0.5 — 2018-01-06
- 1.0.4 — 2017-12-29
- 1.0.3 — 2017-12-28

## README

```js
## Installation
$ npm install new-console

var log = require('new-console');



```

## Features

  * colored console with time stamp
  * log,error,warning,time,timeEnd with timestamp and color
  * check data type of variable

 ## sample code
```js
var log=require('new-console');
var xyz=10;
log(" Hello World ");                      // Tue Feb 05 2019 14:20:10 GMT+0530 (IST)  Hello World
log("type is",log.type(10));               // Tue Feb 05 2019 14:20:11 GMT+0530 (IST)  type is number
log.stime('do_it');
function do_it(){
    for(var i=0;i<899;i++){
    }
}
log.etime('do_it');                 		// Tue Feb 05 2019 14:20:12 GMT+0530 (IST) do_it: 15ms
log.warn("waring message");         		// Tue Feb 05 2019 14:20:12 GMT+0530 (IST) waring message
log.er("error message");            		// Tue Feb 05 2019 14:20:12 GMT+0530 (IST) error message
log.Grn("This is Green color console");    	// Tue Feb 05 2019 14:20:12 GMT+0530 (IST)   This is Green color console
log.Red(" This is Red Color Console ");		// Tue Feb 05 2019 14:20:12 GMT+0530 (IST)   This is Red color console	
log.Pnk(" This is pink Color Console ");	// Tue Feb 05 2019 14:20:12 GMT+0530 (IST)   This is pink color console
log.Brn(" This is Brown Color Console ");	// Tue Feb 05 2019 14:20:12 GMT+0530 (IST)   This is Brown color console
log.Ocn(" This is Ocean Color Console ");	// Tue Feb 05 2019 14:20:12 GMT+0530 (IST)   This is Ocean color console
log.Grey(" This is Grey Color Console ");	// Tue Feb 05 2019 14:20:12 GMT+0530 (IST)   This is Grey color console

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