Converts a codemeta document to a code.json document.
Accepts either a file path (read via Bun's file API) or an already-parsed
object. Field mapping is driven by the internal codemeta-to-code.json mapping table.
Parameters
input: string|Record<string,unknown>
Path to a codemeta JSON file, or a pre-parsed codemeta object.
Returns Promise<Record<string,unknown>>
A code.json-shaped object with all mapped fields populated.
Example
// from a file constcodejson = awaitfromCodemetaToCodejson("codemeta.json")
// from an object constcodejson = awaitfromCodemetaToCodejson({ name:"my-project", ... })
Converts a codemeta document to a code.json document.
Accepts either a file path (read via Bun's file API) or an already-parsed object. Field mapping is driven by the internal codemeta-to-code.json mapping table.