Registry / type-stubs / flow-config-parser

flow-config-parser

JSON →
library0.3.0jsnpmunverified

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.

npm install flow-config-parser
INSTALL
IMPORT
SIG · FLOW-CONFIG-PARSER
F
flow-config-parser
type-stubsjavascriptv0.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse
import parse from 'flow-config-parser'
const parse = require('flow-config-parser')
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.

Demonstrates how to import the parser, read a `.flowconfig` file, and use the resulting configuration object to query various Flow settings.

import fs from 'node:fs'; import parse from 'flow-config-parser'; const flowConfigContent = fs.readFileSync('.flowconfig', 'utf8'); const config = parse(flowConfigContent); console.log('Munge underscores:', config.get('munge_underscores')); // Example: true or false console.log('Suppresses type $flowIgnore:', config.suppressesType('$flowIgnore')); // Example: true or false console.log('Suppresses type Boolean:', config.suppressesType('Boolean')); // Example: true or false console.log('Ignores file node_modules/react/react.js:', config.ignoresFile('node_modules/react/react.js')); // Example: true or false console.log('Remaps module foo.scss:', config.remapModule('foo.scss')); // Example: 'object-shim.js' or null
Debug
Known issues
breakingThis 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).
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.
affects: <=0.3.0
gotchaThe 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.
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.
affects: >=0.1.0
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
31
OpenAI (training)
1
Resources
flow-config-parser — npm install flow-config-parser · libregistry