MiniScript transpiler written in TypeScript that converts MiniScript source files into deployable code with three build modes: default, beautify, and uglify. Version 4.0.1 supports automatic dependency resolution for #include and #import directives, variable/module namespace obfuscation, environment variable injection at transpile time, and literal deduplication. It offers both DirectTranspiler for quick single-file transpilation and Transpiler for full multi-file builds with dependency graphs and installer output. Built on greybel-core, it targets the MiniScript ecosystem and includes TypeScript type definitions.
npm install greybel-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of DirectTranspiler for single-file and Transpiler for multi-file project with obfuscation and env vars.
Use Transpiler with target file path instead of DirectTranspiler when needing dependency resolution.
Review greybel-transpiler changelog and update code accordingly.
Always explicitly set obfuscation: false if you don't want variable name mangling.
Use imported BuildType enum, not hardcoded strings.
Run npm install greybel-transpiler. Use import { DirectTranspiler } from 'greybel-transpiler' with correct named export.Use import { DirectTranspiler } from 'greybel-transpiler' instead of import DirectTranspiler from ...Correct the import to { BuildType }.