{"id":14581,"library":"flow-config-parser","title":"Flow Configuration File Parser","description":"A utility package designed to parse `.flowconfig` files, enabling programmatic access to Flow type checker's configuration settings. The current and last published version of `flow-config-parser` is 0.3.0, released over seven years ago. While its repository `https://github.com/codemix/flow-runtime` remains active for other, related packages, `flow-config-parser` itself is no longer actively developed or maintained, making it effectively abandoned as a standalone package. It provides functions to inspect specific settings like `munge_underscores`, determine suppressed types, identify ignored files, and resolve module remapping directives within Flow's configuration.","status":"abandoned","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/codemix/flow-runtime","tags":["javascript"],"install":[{"cmd":"npm install flow-config-parser","lang":"bash","label":"npm"},{"cmd":"yarn add flow-config-parser","lang":"bash","label":"yarn"},{"cmd":"pnpm add flow-config-parser","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The `parse` function is the default and primary export for parsing `.flowconfig` files. The README example contains a typo where it imports `parse` then uses `parser.parse`; it should be `parse(...)` directly.","wrong":"const parse = require('flow-config-parser')","symbol":"parse","correct":"import parse from 'flow-config-parser'"}],"quickstart":{"code":"import fs from 'node:fs';\nimport parse from 'flow-config-parser';\n\nconst flowConfigContent = fs.readFileSync('.flowconfig', 'utf8');\nconst config = parse(flowConfigContent);\n\nconsole.log('Munge underscores:', config.get('munge_underscores')); // Example: true or false\nconsole.log('Suppresses type $flowIgnore:', config.suppressesType('$flowIgnore')); // Example: true or false\nconsole.log('Suppresses type Boolean:', config.suppressesType('Boolean')); // Example: true or false\nconsole.log('Ignores file node_modules/react/react.js:', config.ignoresFile('node_modules/react/react.js')); // Example: true or false\nconsole.log('Remaps module foo.scss:', config.remapModule('foo.scss')); // Example: 'object-shim.js' or null","lang":"javascript","description":"Demonstrates how to import the parser, read a `.flowconfig` file, and use the resulting configuration object to query various Flow settings."},"warnings":[{"fix":"Consider parsing `.flowconfig` manually or finding a more actively maintained alternative. If used, pin the version carefully and ensure compatibility with your specific environment.","message":"This package, `flow-config-parser`, is effectively abandoned. The last release was v0.3.0 over seven years ago. Users should be aware that it may not be compatible with newer Node.js versions, Flow versions, or modern JavaScript ecosystems (e.g., ESM modules).","severity":"breaking","affected_versions":"<=0.3.0"},{"fix":"Refer to `flow-config-parser`'s npm page for its specific version history and package details. Do not rely on release notes from `flow-runtime` for this package.","message":"The GitHub repository linked (`https://github.com/codemix/flow-runtime`) and the provided 'Recent releases' (e.g., v0.19.0 for `babel-plugin-flow-runtime`) are for the broader `flow-runtime` project, not `flow-config-parser` itself. `flow-config-parser` has not been updated since v0.3.0.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-19T00:00:00.000Z","next_check":"2026-07-18T00:00:00.000Z","problems":[],"ecosystem":"npm"}