json-mirror-compiler is a TypeScript library (v0.4.12, pre-1.0, monthly releases) that compiles JSON Mirror specifications into executable code. It provides a compile function to transform JSON Pointer-based schema definitions into runtime implementations. Key differentiator: focuses on mirror patterns for bidirectional data mapping, unlike other JSON Pointer tools that only resolve paths. Ships TypeScript types.
npm install json-mirror-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the compile function with a simple mirror spec.
Pin exact version in package.json and review changelog before updating.
Update code to treat compile() output as a function rather than a static object.
Use ES import syntax or switch to a dynamic import if in a CommonJS context.
Check type definitions at node_modules/json-mirror-compiler/dist/index.d.ts; contribute fixes if needed.
Run `npm install json-mirror-compiler@0.4.12` and ensure node_modules includes it.
Change to `import { compile } from 'json-mirror-compiler'`.Ensure you call the compiled function: compile(spec)(input) or const fn = compile(spec); fn(input).
Make sure spec has both 'source' and 'target' objects with 'jsonPointer' strings.
No dependency data recorded yet.