v0.1.6
Features
- New
compare
util to help with log level comparing.
import { compare } from 'diary/utils';
// when `a` is _less-than_ `b` then -1
compare('warn', 'error');
// when `a` is _more-than_ `b` then 1
compare('fatal', 'error');
// when `a` is the _same_ as`b` then 0
compare('fatal', 'fatal');