You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@automatons/parser

Package Overview
Dependencies
Maintainers
1
Versions
262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automatons/parser

[![CI/CD](https://github.com/openapi-automatons/openapi-automatons/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/openapi-automatons/openapi-automatons/actions/workflows/ci-cd.yml) [![codecov](https://codecov.io/gh/openapi-automatons/openapi-a

0.0.260
Source
npmnpm
Version published
Maintainers
1
Created
Source

OpenapiAutomatons

CI/CD codecov semantic-release npm downloads

What OpenapiAutomatons

This library is a generator using openapi file.

What code can generate?

namelanguagetypeexample
@automatons/typescript-axiostypescriptclientexample

Get Started

  • Install library to your project
yarn add -D openapi-automatons @automatons/typescript-axios
  • Create settings in your project root
{
  "openapi": "openapi.yml",
  "automatons": [{
    "automaton": "@automatons/typescript-axios",
    "outDir": "src/clients"
  }]
}
  • Add generate command your package.json
{
  "scripts": {
    "generate": "openapi-automatons"
  }
}

Automatons.json

propertytyperequireddescription
openapistringtrueThis is openapi path. It can be relative or absolute. Also, there is no problem with the url format.
automatonsarraytrueThis is the property that contains the module.
automatonsautomatonstringtrueThis is the module name. You can embed your own module. It is also possible to include it with a relative path.
automatonsoutDirstringtrueThis is the output directory of module.

Keywords

openapi

FAQs

Package last updated on 04 Jan 2023

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