apply-template

4.0.8 • Public • Published

apply-template

Build Status codecov

use an existing repository as a template

Usage

Templates can contain variables, which the user will be prompted to fill when applying the template.

Example Template File

Hello, {[.NAME.]}

When applying the above template, the user would be prompted to provide a value for NAME

Applying the template

> apply-template ./my-microservice ./new-microservice

Enter a value for 'MICROSERVICE_NAME': todolist-model-service

Specifying options

It's also possible to set variables when running the command

apply-template templates/test-template my-target-dir --FULL_NAME="Patrick Scott"

Templates

Please contribute more templates! It's super easy!

Readme

Keywords

Package Sidebar

Install

npm i apply-template

Weekly Downloads

5

Version

4.0.8

License

MIT

Unpacked Size

18.5 kB

Total Files

21

Last publish

Collaborators

  • patrickleet