# leveled-debug

> This lib makes even easier to use the npm Debug adding some severity levels.

Latest version **1.1.6** (published 2018-03-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2018-03-10 |
| First published | 2018-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 148.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | lucas.ce.bertin, rafanoronha |

## Links

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

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^3.1.0
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.2
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1

## Recent versions

- 1.1.6 (latest) — 2018-03-10
- 1.1.5 — 2018-03-09
- 1.1.4 — 2018-03-09
- 1.0.3 — 2018-03-09
- 1.0.2 — 2018-03-09
- 1.0.1 — 2018-03-09
- 1.0.0 — 2018-01-26

## README

# Leveled-Debug
This lib makes even easier to use the npm Debug adding some severity levels.

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Linux Build][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]

## How to use it
```js
const { createConsoleDebugger } = require('leveled-debug')
const debuggers = createConsoleDebugger('test')
debuggers.log('test')

/*
console outs: test:log test +0ms
*/
```

## Getting started
First, you should be using yarn, if you don't, start installing by
```npm install -g yarn```

Now, run ```yarn``` to restore the dependencies and then ```yarn build```.

## Debugging
For ease debug and inspection, use ```yarn build:dev```, this way, source mapping will be generated inline on your transpiled files.
There is already one `./.vscode/launch.json` configured to use sourceMaps on debug, put some breakpoints on your source files, hit F5 and be happy.

## Testing
Jest is already configured to respect some rules and generate coverage, run ```yarn test```

## Built with
* [VSCode](https://code.visualstudio.com/)
* [Yarn](https://yarnpkg.com/en/)
* [Babel](https://babeljs.io/)
  * [Exponential operator](https://www.npmjs.com/package/babel-plugin-transform-exponentiation-operator)
  * [Async to bluebird](https://www.npmjs.com/package/babel-plugin-transform-async-to-bluebird)
  * [Object rest spread](https://www.npmjs.com/package/babel-plugin-transform-object-rest-spread)
  * [Import/Export to commonjs](https://www.npmjs.com/package/babel-plugin-transform-es2015-modules-commonjs)
  * [Spread operator](https://www.npmjs.com/package/babel-plugin-transform-es2015-spread)
  * [Destructuring](https://www.npmjs.com/package/babel-plugin-transform-es2015-destructuring)
  * [For-Of](https://www.npmjs.com/package/babel-plugin-transform-es2015-for-of)
  * [Template literals](https://www.npmjs.com/package/babel-plugin-transform-es2015-template-literals)
* [Eslint](https://eslint.org/)
* [Jest](https://facebook.github.io/jest/)

[npm-image]: https://img.shields.io/npm/v/leveled-debug.svg
[npm-url]: https://npmjs.org/package/leveled-debug

[downloads-image]: https://img.shields.io/npm/dm/leveled-debug.svg
[downloads-url]: https://npmjs.org/package/leveled-debug

[travis-image]: https://img.shields.io/travis/lucascebertin/leveled-debug/master.svg?label=linux
[travis-url]: https://travis-ci.org/lucascebertin/leveled-debug

[coveralls-image]: https://img.shields.io/coveralls/lucascebertin/leveled-debug/master.svg
[coveralls-url]: https://coveralls.io/r/lucascebertin/leveled-debug?branch=master

[snyk-image]:https://snyk.io/test/github/lucascebertin/leveled-debug/badge.svg?targetFile=package.json
[snyk-url]:https://snyk.io/test/github/lucascebertin/leveled-debug?targetFile=package.json

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