flow-config-parser

v0.0.4
A parser for flow's configuration files.

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'

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 1/9/2017

Downloads

Maintainers