Socket
Socket
Sign inDemoInstall

@alextanhongpin/gen-cli

Package Overview
Dependencies
45
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alextanhongpin/gen-cli

A code generation utility


Version published
Maintainers
1
Install size
18.2 MB
Created

Readme

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

Last updated on 05 Aug 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc