@codama/renderers
v1.0.4
Published
Exports all Codama renderers
Downloads
123
Maintainers
Readme
Codama ➤ Renderers
This package re-exports all available renderers for Codama IDLs.
Installation
pnpm install @codama/renderers
[!NOTE] This package is not included in the main
codama
package.
Available renderers
The following renderer packages are included in this package:
@codama/renderers-js
asrenderJavaScriptVisitor
@codama/renderers-js-umi
asrenderJavaScriptUmiVisitor
@codama/renderers-rust
asrenderRustVisitor
// node ./codama.mjs
import { renderJavaScriptVisitor, renderJavaScriptUmiVisitor, renderRustVisitor } from '@codama/renderers';
codama.accept(renderJavaScriptVisitor('clients/js/src/generated'));
codama.accept(renderJavaScriptUmiVisitor('clients/js-umi/src/generated'));
codama.accept(renderRustVisitor('clients/rust/src/generated'));