A TypeScript-based transpiler for GreyScript (Grey Hack MiniScript flavour), extending greybel-transpiler with GreyScript-specific AST parsing and code generation. Current stable version 2.0.1. Features three build modes (default, beautify, uglify), automatic dependency resolution, variable/module name obfuscation, environment variable injection, and installer output. Includes DirectTranspiler for single-file and full Transpiler for multi-file projects. Ships with TypeScript type definitions. Part of the greybel ecosystem.
npm install greyscript-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to transpile a single Greyscript string using DirectTranspiler with beautification and no obfuscation.
Use DirectTranspiler for string code input; for file-based projects, pass `target` path to Transpiler.
Replace string build type with enum: BuildType.DEFAULT, BuildType.BEAUTIFY, BuildType.UGLIFY.
Disable obfuscation by setting `obfuscation: false` in options if variable names must be preserved.
Run `npm install greyscript-transpiler --save`
Await the result: `const result = await transpiler.parse();`
Import BuildType: `import { BuildType } from 'greyscript-transpiler'`; then use BuildType.DEFAULT.