Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

rajatxs/template-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

template-code-generator

dependencies Status Open Source Love

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

forthebadge