{"id":25003,"library":"bitbox-transpiler","title":"Bitbox Transpiler","description":"Transform bitbox syntax to JavaScript. Version 1.0.25 is the current stable release. This package is part of the bitboxjs ecosystem and provides a transpiler that converts bitbox template syntax (similar to JSX) into standard JavaScript. It is used to compile .bitbox files into runnable JavaScript code. The library is designed for use with bitbox applications and is typically a build-time dependency. It has no active development cadence and is niche to the bitbox framework.","status":"active","version":"1.0.25","language":"javascript","source_language":"en","source_url":"https://github.com/bitboxjs/bitbox-transpiler","tags":["javascript","bitbox","bitbox transpiler","xjs","jsx"],"install":[{"cmd":"npm install bitbox-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add bitbox-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add bitbox-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The default export is the transpile function. ESM preferred; CJS may work but not guaranteed.","wrong":"const transpile = require('bitbox-transpiler')","symbol":"default","correct":"import transpile from 'bitbox-transpiler'"},{"note":"Named export available; but default import is also supported. Check module definition.","wrong":"import transpile from 'bitbox-transpiler'","symbol":"transpile","correct":"import { transpile } from 'bitbox-transpiler'"},{"note":"TypeScript users: import the type for transform options. Not available in CJS.","wrong":"","symbol":"TransformOptions","correct":"import type { TransformOptions } from 'bitbox-transpiler'"}],"quickstart":{"code":"import transpile from 'bitbox-transpiler';\n\nconst code = '<div>Hello World</div>';\nconst result = transpile(code);\n\nconsole.log(result);\n// => 'React.createElement(\"div\", null, \"Hello World\")'","lang":"javascript","description":"Transpile bitbox syntax to JavaScript using the default import and basic usage."},"warnings":[{"fix":"Upgrade Node.js to version 12 or higher.","message":"The package might not work with Node.js versions below 12 due to use of modern JavaScript features.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run 'npm install --save-dev @types/bitbox-transpiler' if using TypeScript.","message":"No TypeScript definitions included; need to install @types/bitbox-transpiler separately.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pin specific version and test upgrades carefully.","message":"The API may change in future versions; no guarantees on breaking changes.","severity":"deprecated","affected_versions":"<2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install bitbox-transpiler' to install it.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'bitbox-transpiler'"},{"fix":"Ensure input is valid bitbox markup, e.g., '<div>...</div>'.","cause":"Code passed to transpile is not valid bitbox syntax.","error":"SyntaxError: Unexpected token '<'"},{"fix":"Ensure the input code is a full module or use appropriate transformer options.","cause":"Using transpile on code that contains import/export statements outside of module scope.","error":"'import' and 'export' may only appear at the top level"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}