@stackpress/idea-parser
v0.10.4
Published
Parses ideas to AST and readable JSON.
Maintainers
Readme
@stackpress/idea-parser
@stackpress/idea-parser parses .idea source into AST-like tokens and
schema objects.
Use it when you want to inspect or transform the format without running plugins.
Install
Idea requires Node.js 22 or newer.
npm install @stackpress/idea-parserParse A Schema
import { parse, final } from '@stackpress/idea-parser';
const code = `
enum Role {
ADMIN "ADMIN"
USER "USER"
}
model User {
id String @id
role Role
}
`;
const schema = parse(code);
const normalized = final(code);parse Vs final
parse(code)returns the compiled schema representation.final(code)returns the normalized final schema representation.
Main Exports
parsefinalCompilerLexerSchemaTree- tree classes and token types
