@stackpress/idea-transformer
v0.10.4
Published
A programmatical command line interface used by projects and that calls on external transformers to make relevant code
Maintainers
Readme
@stackpress/idea-transformer
@stackpress/idea-transformer loads .idea schemas and executes their
configured plugins.
Use it when you want programmatic access to the runtime behind the Idea CLI.
Install
Idea requires Node.js 22 or newer.
npm install @stackpress/idea-transformerLoad A Schema
import { Transformer } from '@stackpress/idea-transformer';
const transformer = await Transformer.load('./schema.idea');
const schema = await transformer.schema();
await transformer.transform();Custom CLI
#!/usr/bin/env node
import { Terminal } from '@stackpress/idea-transformer';
const terminal = await Terminal.load(process.argv.slice(2));
await terminal.run();Plugin Contract
Plugins receive:
configschematransformercwd
When started through the CLI, plugins also receive cli.
