leveled-debug
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i leveled-debug

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

152 kB

Total Files

15

Last publish

Collaborators

  • lucas.ce.bertin
  • rafanoronha