TypeScript types and constants for the publiccode.yml spec.
This package follows the publiccode.yml spec version, not its
own semver. 0.5.x targets spec v0.5, 0.6.x will target spec
v0.6, and so on.
npm install @publiccodeyml/typesimport type { PublicCode } from '@publiccodeyml/types';
import { categories, scopes, developmentStatuses } from '@publiccodeyml/types';
function describe(pc: PublicCode) {
return `${pc.name} (${pc.softwareType ?? 'unknown'})`;
}PublicCodeinterface covering the full spec- Supporting interfaces:
PublicCodeDescription,PublicCodeMaintenance,PublicCodeContact,PublicCodeLegal,PublicCodeIntendedAudience Softwareinterface for{ id, publiccode }pairs as returned by software-catalog-apicategories,scopes,developmentStatusesconstants
This package is types only. It does not parse or validate YAML at runtime.
BSD-3-Clause. Authors and contributors are tracked in the git log.