{"id":25863,"library":"lexius-transpiler","title":"Lexius Transpiler","description":"Lexius Transpiler is a web-based transpiler for the Lexius language, designed for safe and isolated code transformation. Current stable version is 1.1.0, with frequent releases. It operates in a resource-limited, language-agnostic manner, ensuring no compromise to the host environment. Key differentiators include sandboxed execution, cross-platform support, and a focus on security.","status":"active","version":"1.1.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","Safe","Isolated","Resource-limited","Language-agnostic","No-host-compromise","Resource-Limited","Language-Agnostic","No-Host-compromise"],"install":[{"cmd":"npm install lexius-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add lexius-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add lexius-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since v1.0.0; named export.","wrong":"const lexiusTranspile = require('lexius-transpiler')","symbol":"lexiusTranspile","correct":"import { lexiusTranspile } from 'lexius-transpiler'"},{"note":"Class export; not default.","wrong":"import LexiusTranspiler from 'lexius-transpiler'","symbol":"LexiusTranspiler","correct":"import { LexiusTranspiler } from 'lexius-transpiler'"},{"note":"Type import only; not a runtime value.","wrong":"import { TranspileOptions } from 'lexius-transpiler'","symbol":"TranspileOptions","correct":"import type { TranspileOptions } from 'lexius-transpiler'"}],"quickstart":{"code":"import { lexiusTranspile, LexiusTranspiler } from 'lexius-transpiler';\n\nconst code = 'x = 5';\nconst options = { target: 'es2020', format: 'cjs' };\n\n// Using the function\ntry {\n  const result = lexiusTranspile(code, options);\n  console.log(result);\n} catch (err) {\n  console.error(err);\n}\n\n// Using the class\nconst transpiler = new LexiusTranspiler(options);\nconst transpiled = transpiler.transform(code);\nconsole.log(transpiled);","lang":"typescript","description":"Demonstrates both function and class-based transpilation with options."},"warnings":[{"fix":"Update imports and calls: replace `transpile` with `lexiusTranspile`.","message":"v1.1.0 renamed `transpile()` to `lexiusTranspile()`.","severity":"breaking","affected_versions":"<1.1.0"},{"fix":"Replace `new LexiusTranspiler(options)` with `lexiusTranspile(code, options)`.","message":"Constructor `LexiusTranspiler(options)` is deprecated in v1.1.0; use factory function `lexiusTranspile` instead.","severity":"deprecated","affected_versions":">=1.1.0"},{"fix":"Ensure `target` is at least 'es2022' when using `format: 'esm'`.","message":"Passing `format: 'esm'` may produce invalid code if targets are not supported.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `import { lexiusTranspile } from 'lexius-transpiler'`","cause":"Incorrect import: default import instead of named import.","error":"TypeError: lexius_transpiler__WEBPACK_IMPORTED_MODULE_0__.lexiusTranspile is not a function"},{"fix":"Run `npm install lexius-transpiler` and ensure package.json is present.","cause":"Package not installed or npm install failed.","error":"Cannot find module 'lexius-transpiler'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}