# console

> Returns `console` if present, otherwise returns a `noop`.

Latest version **0.7.2** (published 2018-04-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.2 |
| Published | 2018-04-06 |
| First published | 2011-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | coolaj86, matthewhudson |
| Keywords | console |

## Links

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

## Recent versions

- 0.7.2 (latest) — 2018-04-06
- 0.7.1 — 2018-04-06
- 0.7.0 — 2018-01-20
- 0.6.4 — 2017-11-20
- 0.6.3 — 2017-11-20
- 0.6.2 — 2017-11-20
- 0.6.1 — 2017-11-20
- 0.6.0 — 2017-11-20
- 0.5.2 — 2013-11-06
- 0.5.1 — 2013-11-06
- 0.4.9 — 2011-07-14

## README

# console

[![Greenkeeper badge](https://badges.greenkeeper.io/matthewhudson/console.svg)](https://greenkeeper.io/)
[![NPM downloads](https://img.shields.io/npm/dm/console.svg)](https://www.npmjs.com/package/console)
[![NPM version](https://badge.fury.io/js/console.svg)](http://badge.fury.io/js/console)

> Drop-in replacement for `console` - a cross-environment fix for missing
methods.

## Installation

``` sh
npm install console --save
```

And then import it:

``` js
// using es modules
import console from 'console'

// common.js
const console = require('console').default

// AMD
// I've forgotten but it should work.
```

Or use script tags and globals.

``` html
<script src="https://unpkg.com/console/umd/console.min.js"></script>
```

And then grab it off the global like so:

``` js
const console = console.default
```

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