{"id":27086,"library":"jsonformer","title":"jsonformer","description":"jsonformer is a JSON transpiler by value or schema, currently in early development (v0.0.0). It provides a lexer and parser for a custom JSON-like language with a context-free grammar. The project aims to enable transformation of JSON structures based on either literal values or schema definitions. As a very early-stage package, it is not yet feature-complete and has no stable release cadence. The library is written in TypeScript and targets both Node.js and browser environments.","status":"active","version":"0.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/syall/compiler","tags":["javascript","compiler","transpiler","json","schema","value"],"install":[{"cmd":"npm install jsonformer","lang":"bash","label":"npm"},{"cmd":"yarn add jsonformer","lang":"bash","label":"yarn"},{"cmd":"pnpm add jsonformer","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Default export; package may be ESM-only.","wrong":"const jsonformer = require('jsonformer')","symbol":"jsonformer","correct":"import jsonformer from 'jsonformer'"},{"note":"Named export for lexer function.","wrong":"import lexer from 'jsonformer/lexer'","symbol":"lexer","correct":"import { lexer } from 'jsonformer'"},{"note":"Named export for parser function.","wrong":"const parser = require('jsonformer').parser","symbol":"parser","correct":"import { parser } from 'jsonformer'"}],"quickstart":{"code":"import jsonformer from 'jsonformer';\n\nconst code = `{ \"hello\": \"world\" }`;\nconst result = jsonformer.transpile(code);\nconsole.log(result);","lang":"typescript","description":"Shows basic usage: transpile a JSON string using default export. Note that transpile may not yet be implemented."},"warnings":[{"fix":"Do not use in production. Pin to a specific version if experimenting.","message":"Package is in early development (v0.0.0). APIs are unstable and may change without notice.","severity":"gotcha","affected_versions":"0.0.0"},{"fix":"Use only lexer and parser for now.","message":"Transpiler functionality (schema and value) is not yet implemented as per README.","severity":"breaking","affected_versions":"0.0.0"},{"fix":"Monitor GitHub repository for updates.","message":"The package has no published releases and may be considered abandoned by some standards.","severity":"deprecated","affected_versions":"0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Check package.json and run `npm install jsonformer`.","cause":"Package not installed or not published to npm properly.","error":"Cannot find module 'jsonformer'"},{"fix":"Set type: module in package.json or use .mjs extension, or switch to require().","cause":"Using ES module syntax in a CommonJS environment.","error":"import jsonformer from 'jsonformer'; SyntaxError: Unexpected identifier"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}