1.1.6 • Published 6 years ago

leveled-debug v1.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Leveled-Debug

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

NPM Version NPM Downloads Linux Build Test Coverage Known Vulnerabilities

How to use it

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

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago