Registry / serialization / lexius-transpiler

lexius-transpiler

JSON →
library1.1.0jsnpmunverified

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.

npm install lexius-transpiler
INSTALL
IMPORT
SIG · LEXIUS-TRANSPILER
L
lexius-transpiler
serializationjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lexiusTranspile
import { lexiusTranspile } from 'lexius-transpiler'
const lexiusTranspile = require('lexius-transpiler')
ESM-only since v1.0.0; named export.
LexiusTranspiler
import { LexiusTranspiler } from 'lexius-transpiler'
import LexiusTranspiler from 'lexius-transpiler'
Class export; not default.
TranspileOptions
import type { TranspileOptions } from 'lexius-transpiler'
import { TranspileOptions } from 'lexius-transpiler'
Type import only; not a runtime value.

Demonstrates both function and class-based transpilation with options.

import { lexiusTranspile, LexiusTranspiler } from 'lexius-transpiler'; const code = 'x = 5'; const options = { target: 'es2020', format: 'cjs' }; // Using the function try { const result = lexiusTranspile(code, options); console.log(result); } catch (err) { console.error(err); } // Using the class const transpiler = new LexiusTranspiler(options); const transpiled = transpiler.transform(code); console.log(transpiled);
Debug
Known issues
breakingv1.1.0 renamed `transpile()` to `lexiusTranspile()`.
fix
Update imports and calls: replace `transpile` with `lexiusTranspile`.
affects: <1.1.0
deprecatedConstructor `LexiusTranspiler(options)` is deprecated in v1.1.0; use factory function `lexiusTranspile` instead.
fix
Replace `new LexiusTranspiler(options)` with `lexiusTranspile(code, options)`.
affects: >=1.1.0
gotchaPassing `format: 'esm'` may produce invalid code if targets are not supported.
fix
Ensure `target` is at least 'es2022' when using `format: 'esm'`.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: lexius_transpiler__WEBPACK_IMPORTED_MODULE_0__.lexiusTranspile is not a function
Incorrect import: default import instead of named import.
fix
Use `import { lexiusTranspile } from 'lexius-transpiler'`
Cannot find module 'lexius-transpiler'
Package not installed or npm install failed.
fix
Run `npm install lexius-transpiler` and ensure package.json is present.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lexius-transpiler — npm install lexius-transpiler · libregistry