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

@huolala-tech/nad-cli

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huolala-tech/nad-cli

The CLI Tools of Nad Project

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-91.67%
Maintainers
0
Weekly downloads
 
Created
Source

nad-cli · LICENSE codecov

A CLI tool, can generate client code from an API service that has installed and enabled the nad-java-sdk.

Include

yarn add @huolala-tech/nad-cli -D

or

npm install @huolala-tech/nad-cli --save-dev

Usage

Usage: nad [Options] <URL>
       nad --config <Path>
       nad -c <Path>

Example: nad http://localhost:8080
         nad -t oc http://localhost:8080

Options:
  -t, --target <target>     Specify the output file format ("ts", "oc", "raw"), defaults to "ts".
  -o, --output <path>       Specify the output file path, defaults to stdout.
  -c, --config <path>       Path to configuration file. If specified, all other arguments will be ignored.
  -h, --help                Display this help message.

Config File

type Target = 'ts' | 'oc' | 'raw';

export interface ConfigFile {
  /**
   * Specify the output file format.
   * @default ts
   */
  target?: Target;

  /**
   * Specify the API definition file URL.
   * @required
   */
  url: string;

  /**
   * Specify the output file path.
   * @default stdout
   */
  output?: string;

  /**
   * Specify which APIs should be generated.
   * @default All
   */
  apis?: string[];

  /**
   * Define some special types to map to other types.
   */
  typeMapping?: Record<string, string>;
}

FAQs

Package last updated on 04 Jul 2024

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