Registry / serialization / avdl2json

avdl2json

JSON →
library2.2.5jsnpmunverified

A Node.js compiler that converts AVDL (Avro IDL) files to JSON schema. Version 2.2.5 is the latest stable release. This package is specifically designed for Keybase's AVDL format and is unlikely to receive further updates. It has no notable alternative packages for this specific conversion, making it unique for Keybase-related projects.

npm install avdl2json
INSTALL
IMPORT
SIG · AVDL2JSON
A
avdl2json
serializationjavascriptv2.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

avdl2json
import { compile } from 'avdl2json'
const avdl2json = require('avdl2json')
Package is ESM only; commonjs require will fail.
compile
import { compile } from 'avdl2json'
const { compile } = require('avdl2json')
Named export only; default import does not exist.
compileFile
import { compileFile } from 'avdl2json'
import compileFile from 'avdl2json'
Named export 'compileFile' must be destructured.

Converts an AVDL file to JSON schema using the compileFile function.

import { compileFile } from 'avdl2json'; async function convert() { const jsonSchema = await compileFile('path/to/example.avdl'); console.log(JSON.stringify(jsonSchema, null, 2)); } convert().catch(console.error);
avdl2json --version
Debug
Known issues

No known issues recorded.

Errors
Common errors & fixes
SyntaxError: Cannot use import statement outside a module
Package uses ESM imports but project is not configured as module.
fix
Add "type": "module" to package.json or use .mjs extension.
Error: Cannot find module 'avdl2json'
Package not installed correctly or path issue.
fix
Run 'npm install avdl2json' and ensure node_modules is in scope.
Upgrade
Version history
2.2.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
avdl2json — npm install avdl2json · libregistry