npm.io
1100.0.0 • Published 3 months ago

@pnpm/logger

Licence
MIT
Version
1100.0.0
Deps
2
Size
7 kB
Vulns
0
Weekly
0
Stars
35.8K

@pnpm/logger

Logger for pnpm

npm version

Installation

pnpm add @pnpm/logger

Usage

@pnpm/logger is mostly just a wrapper over bole. Logging is done the same way as in bole. To listed for logs, use streamParser or create a new parser with createStreamParser().

import logger, {streamParser} from '@pnpm/logger'

logger.debug({ foo: 'bar' })

streamParser.on('data', msg => {
  // ...
})

License

MIT

Keywords