leveled-debug
v1.1.6
Published
This lib makes even easier to use the npm Debug adding some severity levels.
Downloads
1
Readme
Leveled-Debug
This lib makes even easier to use the npm Debug adding some severity levels.
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