0.3.0 • Published 7 years ago

flow-config-parser v0.3.0

Weekly downloads
6,411
License
MIT
Repository
github
Last release
7 years ago

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'