Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flow-config-parser

codemix4.8kMIT0.3.0

A parser for flow's configuration files.

readme

Flow Config Parser

Parses .flowconfig files and provides an API for inspecting the configuration.

import parse from 'flow-config-parser';
const config = parser.parse(fs.readFileSync('.flowconfig', 'utf8'));

console.log(config.get('munge_underscores')); // true
console.log(config.suppressesType('$flowIgnore')); // true
console.log(config.suppressesType('Boolean')); // false
console.log(config.ignoresFile('node_modules/react/react.js')); // true | false
console.log(config.remapModule('foo.scss')); // 'object-shim.js'