0.3.0 • Published 7 years ago

debug-any-level v0.3.0

Weekly downloads
22
License
-
Repository
github
Last release
7 years ago

debug-any-level

debug with any custom level using ES6 Proxy.

Requires Node v6+.

Install

npm i debug-any-level

Usage

It can be used in a variety of ways:

import debug from 'debug-any-level'

// without a namespace
debug.log('hello world!')
// => log hello world!
debug.error('something went wrong')
// => error something went wrong
debug.custom('watch this!')
// => custom watch this!
debug.custom.deep('watch this!')
// => custom:deep watch this!


// with a namespace
const app = debug('app')
app.log('hello world!')
// => app:log hello world!
// ...

// access the original debug object (and its properties) from anywhere
debug.enable('log,error')
app.enable('app:*')
0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago