How to use get-pkg-repo - 1 common examples

To help you get started, we’ve selected a few get-pkg-repo 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 doczjs / docz / core / docz-core / src / utils / repo-info.ts View on Github external
export const parseRepo = (): any => {
  try {
    const pkg = fs.readJsonSync(paths.appPackageJson)
    return getPkgRepo(pkg)
  } catch (err) {
    return null
  }
}

get-pkg-repo

Get repository user and project information from package.json file contents.

MIT
Latest version published 3 years ago

Package Health Score

74 / 100
Full package analysis

Popular get-pkg-repo functions