Socket
Book a DemoInstallSign in
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

latest
Source
npmnpm
Version
2.0.0
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