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

nestia

Package Overview
Dependencies
Maintainers
1
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestia

Automatic SDK and Document generator for the NestJS

  • 0.1.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.4K
decreased by-20.42%
Maintainers
1
Weekly downloads
 
Created
Source

Nestia

Automatic SDK generator for the NestJS.

GitHub license npm version Downloads Build Status

Outline

If you're making a backend server with the TypeScript and NestJS, you don't need any extra dedication, for delivering Rest API to the client (front-end) developers, like writing swagger.json comments.

Just generate a SDK library through the Nestia and deliver the SDK library to the client developers. The client developers can call your backend server API just by calling the SDK library functions with await symbol, re-using the interfaces what you've defined.

npm install --save-dev nestia
npx nestia sdk "src/controller" --out "src/api"

If you want to see an example project using the Nestia, click below links:

Usage

Installation

npm install --save-dev nestia
npx nestia sdk "src/controllers" --out "src/api"

Installing the Nestia is very easy.

Just type the npm install --save-dev nestia command in your NestJS backend project.

CLI options

npx nestia sdk <source_controller_directory> --out <output_sdk_directory>

npx nestia sdk "src/controllers" --out "src/api"
npx nestia sdk "src/consumers/controllers" "src/sellers/controllers" --out "src/api

To generate a SDK library through the Nestia is very easy. Just type the nestia sdk <input> --out <output> command in the console. If there're multiple source directories containing the NestJS controller classes, type all of them separating by a space word.

npx nestia install

Also, SDK library generated by the Nestia has some dependencies like below. When you type the nestia install command in the console, those dependencies would be automatically install and would be enrolled to the dependencies field in the package.json

Keywords

FAQs

Package last updated on 11 May 2021

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