How to use the @kosko/generate.print function in @kosko/generate

To help you get started, we’ve selected a few @kosko/generate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tommy351 / kosko / packages / cli / src / commands / generate.ts View on Github external
async handler(args) {
    const result = await generateHandler(args);

    print(result, {
      format: args.output,
      writer: process.stdout
    });
  }
};

@kosko/generate

Find and print components in a kosko app directory.

MIT
Latest version published 13 days ago

Package Health Score

75 / 100
Full package analysis