Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@synx-ai/oas3-mdx
Advanced tools
Readme
Convert OpenAPI v3 spec into a directory of markdown files based on your spec paths. The purpose of this tool is to boost documentation generation and seamlessly integrate them into static site generators.
Handlebars is used to provide fully configurable templating support.
yarn add @synx-ai/openapi2md
npm install @synx-ai/openapi2md
Option | CLI argument | JavaScript parameter | Default |
---|---|---|---|
OpenAPI spec | --spec | specFile | None |
Target build dir | --target | outPath | ./build |
Templates dir | --templates | templatePath | ./templates |
The tool will try to load the --templates
relative to current working path first, then will fallback to library path.
Usage: openapi2md --specs [file] --target [target path] --templates [template path]
Options:
--version Show version number [boolean]
-s, --spec OpenAPI specification [required]
-o, --target target build path [default: "./build"]
-t, --template templates paths [default: "./templates"]
--help Show help
const convert = require('openapi2md').default;
convert('./example/petstore.json', './build');
For every operation in paths
, object with all references resolved will be passed to templates/path.hdb
, please refer to default template for an example in how to use it.
Please note that before saving, prettify will be executed to format the output, you can disable it using the <!-- prettier-ignore-start -->
tag, exmaple:
<!-- prettier-ignore-start -->
<Tabs defaultValue="{{someVar}}" values={[
{{#each content}}
{ label: "{{@key}}", value: "{{@key}}" },
{{/each}}
]}>
<!-- prettier-ignore-end -->
PR's are more than welcome and highly appreciated.
FAQs
Convert OpenAPI spec to Markdown files.
The npm package @synx-ai/oas3-mdx receives a total of 6 weekly downloads. As such, @synx-ai/oas3-mdx popularity was classified as not popular.
We found that @synx-ai/oas3-mdx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.