# dever

> A dev helper.

Latest version **2.0.0** (published 2013-08-28) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2013-08-28 |
| First published | 2013-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Shallker Wang |
| Maintainers | shallker-wang |
| Keywords | dev, log, logger, debug, info, warn |

## Links

- npm: https://www.npmjs.com/package/dever
- Repository: https://github.com/shallker-wang/dever
- Issues: https://github.com/shallker-wang/dever/issues
- npm.io page: https://npm.io/package/dever

## 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
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K 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

## Recent versions

- 2.0.0 (latest) — 2013-08-28
- 1.0.4 — 2013-08-28
- 1.0.3 — 2013-08-28
- 1.0.2 — 2013-08-28
- 1.0.1 — 2013-08-27
- 1.0.0 — 2013-08-27

## README

dever
==========

A dev helper.


## Installation
```bash
npm install dever
```

## Quick Start
```javascript
var debug = require('dever').debug('Controller/Users')
var error = require('dever').error('Controller', 'Users')
debug('hey, I got something here')
return error('opps, something goes wrong')
```

## Silent Mode
Turn off the output:
```javascript
var debug = require('dever').debug('/api/users').off
var error = require('dever').error('/api/users').off
```

## Log levels
* 0 [EMERGENCY] system is unusable  
* 1 [ALERT] action must be taken immediately  
* 2 [CRITICAL] the system is in critical condition  
* 3 [ERROR] error condition  
* 4 [WARNING] warning condition  
* 5 [NOTICE] a normal but significant condition  
* 6 [INFO] a purely informational message  
* 7 [DEBUG] messages to debug an application  

## dev.json
A config file to control output in development:
```json
{
  "output": {
    "EMERGENCY": true,
    "ALERT": true,
    "CRITICAL": true,
    "ERROR": true,
    "WARNING": true,
    "NOTICE": true,
    "INFO": true,
    "DEBUG": true 
  },
  "throw": true
}
```

## pro.json
A config file to control output in production:
```json
{
  "output": {
    "EMERGENCY": false,
    "ALERT": false,
    "CRITICAL": false,
    "ERROR": false,
    "WARNING": false,
    "NOTICE": false,
    "INFO": false,
    "DEBUG": false 
  },
  "throw": false
}
```

## Todo
* readFileJSON() to require()

---

Copyright (c) 2013 Shallker Wang - MIT License (enclosed)

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