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

@orval/core

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orval/core

[![npm version](https://badge.fury.io/js/orval.svg)](https://badge.fury.io/js/orval) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![tests](https://github.com/anymaniax/orval/actions/workflows

  • 6.11.0-alpha.7
  • npm
  • Socket score

Version published
Weekly downloads
206K
increased by22.74%
Maintainers
1
Weekly downloads
 
Created

What is @orval/core?

@orval/core is a powerful tool for generating TypeScript clients from OpenAPI (Swagger) specifications. It helps streamline the process of creating API clients by automating the generation of TypeScript types and functions based on the OpenAPI definitions.

What are @orval/core's main functionalities?

Generate TypeScript API Clients

This feature allows you to generate TypeScript API clients from an OpenAPI specification file. The generated clients can be configured to use different HTTP clients like Axios.

const orval = require('@orval/core');

orval.generate({
  input: './path/to/openapi.yaml',
  output: './path/to/output',
  client: 'axios'
});

Custom Templates

You can provide custom templates to tailor the generated code to your specific needs. This allows for greater flexibility and customization in how the API clients are generated.

const orval = require('@orval/core');

orval.generate({
  input: './path/to/openapi.yaml',
  output: './path/to/output',
  client: 'axios',
  templates: './path/to/custom/templates'
});

Mock Server Generation

This feature enables the generation of a mock server based on the OpenAPI specification. It can be useful for testing and development purposes when the actual API is not yet available.

const orval = require('@orval/core');

orval.generate({
  input: './path/to/openapi.yaml',
  output: './path/to/output',
  mock: true
});

Other packages similar to @orval/core

FAQs

Package last updated on 24 Nov 2022

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