Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tonyer/cg

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonyer/cg

A fast text/code generator

  • 0.0.29
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

cg

a text tool that saves you time and helps your team build new files with consistency.

Install

  1. Download from release
  2. Install by npm
npm i -g @tonyer/cg
# other package manager
yarn add -g @tonyer/cg
pnpm add -g @tonyer/cg

Quick Start

  • Add template
cd examples
# add a template to user path
cg add base
# as new name
cg add base test
  • Use Template name
# use template to generate
cg g base --name Tom --age 12
cg g test --name Job --age 44
  • Use Template path
# use template to generate
cg g --template=examples/base --params="name=Tom&age=12"
cg g --template=examples/test --params="name=Tom&age=12"

Use git

  • Add template repo
# clone template repo
cg clone https://github.com/MQpeng/cg-templates
  • fetch template repo
# pull template repo
cg pull

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc