Socket
Socket
Sign inDemoInstall

@luvio/compiler

Package Overview
Dependencies
2
Maintainers
11
Versions
320
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @luvio/compiler

Luvio Compiler


Version published
Weekly downloads
515
increased by459.78%
Maintainers
11
Created
Weekly downloads
 

Readme

Source

@luvio/compiler

Purpose

The Luvio Compiler package is the main code generator for API clients. It uses a two-phased approach to code generation.

  1. Parsing
    • We take a RAML file and parse it using AMF and our own custom annotations into an intermediate representation called ModelInfo;
  2. Code Generation
    • We take the ModelInfo and we use it to inform generation of Typescript Api Clients. The code generator is designed to be somewhat composable, so the caller can decide which pieces of the ModelInfo they'd like to have generated by providing different "Source Writers" to the compiler. This is all coordinated by the LuvioRamlCompiler.
    • The main transformation from pieces of ModelInfo to the actual Typescript code happens in codegen.

FAQs

Last updated on 29 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc