nest-gen
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

nest-gen

Source code generation for API client from nest.js controller.

npm Package Version

Installation

npm i -D nest-gen

Usage

npx nest-gen [options]

CLI Options

  --angular:
    To include angular @Injectable() above the controller class.
    Default not activated.

  --suffix <suffix>:
    To indicate the suffix of the controller class.
    E.g. service, client, provider, sdk
    Default: service

Usage Example

cd the-nestjs-project

## for Angular Projects
npx nest-gen --angular

## for non-Angular projects
npx nest-gen --suffix client

License

This project is licensed with BSD-2-Clause

This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:

  • The freedom to run the program as you wish, for any purpose
  • The freedom to study how the program works, and change it so it does your computing as you wish
  • The freedom to redistribute copies so you can help others
  • The freedom to distribute copies of your modified versions to others

Package Sidebar

Install

npm i nest-gen

Weekly Downloads

2

Version

1.1.0

License

BSD-2-Clause

Unpacked Size

12.2 kB

Total Files

5

Last publish

Collaborators

  • beenotung