easygraphql-parser is a Node.js library (v0.0.15, last updated in 2020) that parses a GraphQL schema string into a plain JavaScript object, breaking down types, fields, nullability, arrays, and deprecation. It is part of the EasyGraphQL ecosystem, providing a lightweight alternative to more complex parsers like graphql-js's parse. The library is in maintenance mode, with no recent releases. Key differentiator: outputs a simple, digestible object without requiring full GraphQL execution, making it useful for code generation or schema analysis tools.
npm install easygraphql-parserNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a GraphQL schema file into a JavaScript object and logs the fields of the Family type.
Migrate to graphql-js: import { parse, print } from 'graphql'; const ast = parse(schemaCode);Downgrade graphql to 15.x or use a different parser.
Preprocess schema to remove unsupported features or use graphql-js parse for full AST.
Run: npm install graphql@15
Use: import parser from 'easygraphql-parser'
Ensure const parser = require('easygraphql-parser'); parser(schema);