pnpm/cli/default-reporter
Zoltan Kochan cdd5eb6b5a
chore(release): 7.28.0
2023-02-25 18:17:46 +02:00
..
src fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
test fix: remove `suppressImplicitAnyIndexErrors` from typescript settings (#5991) 2023-01-28 18:19:26 +02:00
CHANGELOG.md chore(release): 7.28.0 2023-02-25 18:17:46 +02:00
README.md refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
jest.config.js refactor: group projects in different subdirectories (#5659) 2022-11-20 01:35:22 +02:00
package.json chore(release): 7.28.0 2023-02-25 18:17:46 +02:00
tsconfig.json fix: update TypeScript to v5 (#5990) 2023-02-23 13:05:44 +02:00
tsconfig.lint.json refactor: put all non-public projects to directories that start with __ 2022-11-20 02:40:44 +02:00

README.md

@pnpm/default-reporter

The default reporter of pnpm

Installation

pnpm add @pnpm/default-reporter

Usage

import { streamParser } from '@pnpm/logger'
import { initDefaultReporter } from '@pnpm/default-reporter'

const stopReporting = initDefaultReporter({
  context: {
    argv: [],
  },
  streamParser,
})

try {
  // calling some pnpm APIs
} finally {
  stopReporting()
}

Style Guide

  1. Never use blue or grey as font color as they are hard to read in many consoles.
    1. Use dim instead of grey
    2. Use cyan bright instead of blue
  2. Don't hide the CLI cursor. (It is easier to never hide but it is really needed only when scripts are running.)
  3. Don't use green and yellow to distinct something.

License

MIT