bare-debug-log

Simple debug log for JavaScript

Apache-2.0 2 个版本
安装
npm install bare-debug-log
yarn add bare-debug-log
pnpm add bare-debug-log
bun add bare-debug-log
README

bare-debug-log

Simple debug log for JavaScript.

npm i bare-debug-log

Usage

const log = require('bare-debug-log')('foo')

log('hello from foo [%d]', 123)
$ BARE_DEBUG=foo bare index.js
FOO 3245: hello from foo [123]

License

Apache-2.0

版本列表
2.0.0 2024-09-11
1.0.0 2024-05-08