How to use validate-npm-package-license - 2 common examples

To help you get started, we’ve selected a few validate-npm-package-license 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 pikapkg / pack / checkpoint / dist-src / util / normalize-manifest / util.js View on Github external
export function isValidLicense(license) {
    return !!license && validateLicense(license).validForNewPackages;
export function stringifyPerson(person) {
github pikapkg / pack / src / util / normalize-manifest / util.ts View on Github external
export function isValidLicense(license: string): boolean {
  return !!license && validateLicense(license).validForNewPackages;


Give me a string and I'll tell you if it's a valid npm package license string

Latest version published 6 years ago

Package Health Score

65 / 100
Full package analysis

Popular validate-npm-package-license functions