IPLD Schema DSL parser and CLI utilities for JavaScript. Provides parse, print, and validation functions for IPLD schema definitions. Current stable version is 3.0.3, with semiver releases as needed. Key differentiators: pure JS, no native dependencies, supports both programmatic use and CLI (validate and to-json commands), handles .ipldsch and .md files, and is part of the broader IPLD ecosystem. Ships TypeScript types.
npm install ipld-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses an IPLD schema DSL string into an AST and validates it for correctness. Uses the parse and validate functions from the main module.
Use import syntax or dynamic import() instead of require().
Change import path to 'ipld-schema/print.js'.
Use npx ipld-schema or add a script to package.json.
Use ipld-schema-validator package for data validation.
Use 'import { parse } from 'ipld-schema'' or 'const { parse } = await import('ipld-schema')'.Use 'import { print } from 'ipld-schema/print.js'' with the '.js' extension.Use 'import { parse } from 'ipld-schema'' instead of 'import parse from 'ipld-schema''.No dependency data recorded yet.