(license?: PackumentLicense)
| 72 | * @returns License string, or `undefined` if not present or unrecognized |
| 73 | */ |
| 74 | export function normalizeLicense(license?: PackumentLicense): string | undefined { |
| 75 | if (!license) return undefined |
| 76 | if (typeof license === 'string') return license |
| 77 | if (typeof license.type === 'string') return license.type |
| 78 | return undefined |
| 79 | } |
no outgoing calls
no test coverage detected