Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 599 Bytes

@squelette/core npm version

Provides Open API parser and basic types.

Limitations

  • Currently, this package only accepts Open API 3.0 written in yaml.

Install

$ yarn add @squelette/core

How to use programmatically

import fs from "fs"
import YAML from "js-yaml"
import { parse } from '@squelette/core'

const file = fs.readFileSync(YOUR_FILE_PATH, 'utf-8')
const yaml = YAML.safeLoad(file)

// retrive abstract syntax tree
const parsedAST = parse(yaml)

License

MIT

You can’t perform that action at this time.