Skip to content

ExampleMeta

Program metadata passed to a function-form example, resolved at render time.

name is the actually-invoked program name (options.help.binName, falling back to the command name) so examples stay truthful under symlinks, inheritName, and npx x vs a global install. version is the program version, or undefined when none is configured.

Signatures

ts
interface ExampleMeta {}

Members

Properties

name

ts
name: string;

version

ts
version: string | undefined;

See Also

Released under the MIT License.