New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alextanhongpin/gen-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alextanhongpin/gen-cli

A code generation utility

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Gen-CLI

Code generation with js.

Configuration

Example config.json that contains two commands, controller and service. Calling $ gen g controller foo will then create the template files first if it doesn't exist, and then the destination files. See config.sample.json5.

Usage

# Initialize config file.
$ gen init

# Run the template generation.
$ gen g <type> <name>

Templating

Uses handlebar.js because it allows us to register helpers.

TODO

  • read config from package.json, "gen"
  • force overwrite if exists warn if exists
  • better UI
  • allow configuration of templates (passing helpers)
  • compile to supported js versions
  • a golang version

FAQs

Package last updated on 05 Aug 2020

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