Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @kosko/template

Index

References

Interfaces

Functions

References

File

Re-exports File

Result

Re-exports Result

Template

Re-exports Template

run

Re-exports run

writeFiles

Re-exports writeFiles

Functions

run

  • run(template: Template<any>, argv?: string[]): Promise<void>
  • Parse command line arguments and generate files with a template.

    Parameters

    • template: Template<any>

      Template

    • Default value argv: string[] = process.argv.slice(2)

      Command line arguments

    Returns Promise<void>

writeFiles

  • writeFiles(path: string, files: ReadonlyArray<File>): Promise<void>
  • Write files to the specified path.

    Parameters

    • path: string

      Destination path

    • files: ReadonlyArray<File>

      Files to write

    Returns Promise<void>

Generated using TypeDoc