npm.io
3.0.2 • Published 5 years ago

1log

Licence
MIT
Version
3.0.2
Deps
1
Size
350 kB
Vulns
0
Weekly
0
Stars
64
DeprecatedThis package is deprecated

gzip size tree shaking types coverage status

This library provides a function log that can be used as the regular console.log, but has two superpowers: you can insert it into any expression, as in f(log(x)), and it supports plugins. There are plugins for setting severity level, for logging functions, async functions, promises, iterables, async iterables, observables, for creating snapshots of log messages in Jest tests, and more.

Please refer to the GitHub README for full documentation and screenshots.

Keywords