Skip to main content
Version: v0.0.6

Function: getAstmProfile()

getAstmProfile(name): AstmProfile | undefined

Look up a built-in profile by name. Returns undefined when no built-in has that name (a user-defined profile is not in this registry, pass it directly).

Parameters

name

string

The built-in profile name.

Returns

AstmProfile | undefined

The profile, or undefined.

Example

import { getAstmProfile } from "@cosyte/astm";
getAstmProfile("referenceCorpus")?.provenance?.source;