1.0.4 • Published 4 years ago
tsnippet v1.0.4
template-code-generator
It helps you to create and clone your existing code template.
All of this code templates will store inside your home directory.
Install
$ npm install -g tsnippet
Usage
To see available templates use
$ tcg list
It will produce the following result
$ tcg list
1 Active templates
MM/DD/YYYY, HH:MM:SS .html -
$
To generate a code snippet
$ tcg index.html
It will generate simple HTML code snippet in your current directory
You can add your own code snippet To set a default template, use "_" character as a filename
$ tcg use index.jsx
and access it using
$ tcg App.jsx --index