# gengojs-debug

> The debugger console for gengo.js

Latest version **2.0.4** (published 2015-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install gengojs-debug
pnpm add gengojs-debug
yarn add gengojs-debug
bun add gengojs-debug
```

## 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 | 2.0.4 |
| Published | 2015-09-30 |
| First published | 2015-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | iwatakeshi |
| Maintainers | iwatakeshi |
| Keywords | debug, gengo.js, utility, gengojs, i18n |

## Links

- npm: https://www.npmjs.com/package/gengojs-debug
- Repository: https://github.com/iwatakeshi/gengojs-debug
- Homepage: https://github.com/iwatakeshi/gengojs-debug#readme
- Issues: https://github.com/iwatakeshi/gengojs-debug/issues
- npm.io page: https://npm.io/package/gengojs-debug

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^1.1.1
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.3.2

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.0.4 (latest) — 2015-09-30
- 2.0.3 — 2015-09-30
- 2.0.2 — 2015-09-30
- 2.0.1 — 2015-09-30
- 2.0.0 — 2015-09-30
- 1.1.1 — 2015-08-28
- 1.0.1 — 2015-08-27
- 1.0.0 — 2015-08-27

## README

# gengojs-debug
The debugger console for [gengo.js](http://github.com/gengojs/gengojs)

## Usage

#### ES6
```javascript
import debug from 'gengojs-debug';

debug(namespace:string).[level](args:*);
```
#### ES5
```javascript
var debug = require('gengojs-debug');

debug(namespace:string).[level](args:*);
```

It's even possible to chain the methods:

```javascript
/* Example */

debug('core')
	.warn('This is a warning')
	.error('This is an error!');
```

**Notes**

It's best if you define a logger with a namespace set when you require `gengojs-debug`:

```javascript
/* Example */

var debug = require('gengojs-debug');
var log = debug('core');

log.debug(/*...*/);

```

In terminal:

```bash
# In OSX, set the namespace and the debug level then run a file:
DEBUG=gengo.core:warn, node index.js

# In Windows, set the namespace and the debug level:
DEBUG=gengo.core:warn
# Run the file
node index.js
```

## Namespaces
The available namespaces are:

* core
* parser
* router
* backend
* api
* localize
* header

## Levels

The available levels are:

* debug
* warn
* error
* info
* verbose
* silly

Note that you must prepend `'gengo'` before the namespaces
as you access the namespace with a `'.'` and then specify
the debug level after appending a `':'`.

Example:

```bash
DEBUG=gengo.parser:debug gengo.router:*
```

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