1.0.0 • Published 8 years ago

itp v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

itp – Insert template please

itp is a simple manager for template. It's useful to create boilerplate for READMEs, gitignores, etc... It isn't a huge beast with bells and whistle. It just does the job.

Installation

npm install --global itp

Or if you have yarn (better IMO):

yarn global add itp

Usage

It's very simple. You create .templates folder in your HOME directory, and inside, you put it all your template. Then, all you have to do is:

~/some/where $ itp filename

~/.templates/filename will be parsed and compiled by handlebars and then ~/some/where/filename will be written.

If the destination already exists, you have to use the --force flag, otherwise you'll get a warning and it won't do anything.

Tip: you can do more than one template at a time, for example:

~/my/new/repository $ itp README.md .gitignore 

Variables

In your template, you have access to the following variables:

NameDescriptionExample
cwdThe path to the current working directory~/tools/itp
directoryThe last directory in cwditp

Feel free to raise an issue/pull request if you need some other variables :wink:

1.0.0

8 years ago

0.1.1

8 years ago