Skip to main content

Module: @kosko/template

Table of contents#

Interfaces#

Functions#

run#

run(template: Template<any>, argv?: string[]): Promise<void>

Parse command line arguments and generate files with a template.

Parameters:#

NameTypeDescription
templateTemplate<any>Template
argvstring[]Command line arguments

Returns: Promise<void>

Defined in: packages/template/src/cli.ts:14


writeFiles#

writeFiles(path: string, files: ReadonlyArray<File>): Promise<void>

Write files to the specified path.

Parameters:#

NameTypeDescription
pathstringDestination path
filesReadonlyArray<File>Files to write

Returns: Promise<void>

Defined in: packages/template/src/write.ts:12