How to use the @verdaccio/readme function in @verdaccio/readme

To help you get started, we’ve selected a few @verdaccio/readme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github verdaccio / verdaccio / src / lib / utils.ts View on Github external
export function parseReadme(packageName: string, readme: string): string | void {
  if (_.isEmpty(readme) === false) {
    return sanitizyReadme(readme);
  }

  // logs readme not found error
  logger.error({ packageName }, '@{packageName}: No readme found');

  return sanitizyReadme('ERROR: No README data found!');
}
github verdaccio / verdaccio / src / lib / utils.ts View on Github external
export function parseReadme(packageName: string, readme: string): string | void {
  if (_.isEmpty(readme) === false) {
    return sanitizyReadme(readme);
  }

  // logs readme not found error
  logger.error({ packageName }, '@{packageName}: No readme found');

  return sanitizyReadme('ERROR: No README data found!');
}

@verdaccio/readme

Readme markdown parser

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis

Popular @verdaccio/readme functions