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

@superbogy/zly

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superbogy/zly

yaml refer

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

:dango: zly is a yaml assembly parser. You can split a large yaml file into small fragments. It is very useful for writing a swagger API document. You can import yaml piece from relative path or absolute path.

Install

npm i -g @superbogy/zly

Get-started

Usage: zly [options]

Options:
  -V, --version        output the version number
  -o, --output <path>  put the result to file
  -w, --workspace      yaml file root path
  -f, --format <type>  format output style, yaml or json (default: "yaml")
  -p, --pretty         pretty out put
  -s, --server         start a swagger ui
  -e, --extname <ext>  extend name, split with comma
  -h, --help           output usage information

Get-started

  • preview a swagger yaml file: zly -s api-spec.yaml

  • import yaml file: $ref: relative/path/some.yaml

Demo

clone this project and run zly -s test/example/index.yaml

zly

structure

├── definitions
│   ├── Error.yaml
│   ├── Pet.yaml
│   └── index.yaml
├── entry.yaml
└── routers
    ├── index.yaml
    └── pets
        ├── $id.yaml
        └── list.yaml

The entry file refer two file from definitions/index.yaml and routers/index.yaml

paths:
  $ref: routers/index.yaml
components:
  $ref: definitions/index.yaml

for routers/index.yaml:

/pets:
  $ref: pets/list.yaml
/pets/{petId}:
  $ref: pets/$id.yaml

FAQs

Package last updated on 09 May 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

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