itp

1.0.0 • Public • Published

itp – Insert template please

Gitmoji

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:

Name Description Example
cwd The path to the current working directory ~/tools/itp
directory The last directory in cwd itp

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

/itp/

    Package Sidebar

    Install

    npm i itp

    Weekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • math2001