hunk.code_window: ```
   npm install pnpm-default-reporter
   ```
   ## License
   [MIT](LICENSE)
hunk.labels: keep keep keep keep add keep keep keep
hunk.after_edit: ## Style Guide
   1. Never use blue as font color as it is hard to read in many consoles
  
hunk.file_path: packages/default-reporter/README.md
hunk.type: add
file: import replaceString = require('replace-string')
  
  // The only reason package IDs are encoded is to avoid '>' signs.
  // Otherwise, it would be impossible to split the node ID back to package IDs reliably.
  // See issue https://github.com/pnpm/pnpm/issues/986
  export default function encodePkgId (pkgId: string) {
    return replaceString(replaceString(pkgId, '%', '%25'), '>', '%3E')
  }
  