UNPKG

537 BMarkdownView Raw
1# Flow Config Parser
2
3Parses `.flowconfig` files and provides an API for inspecting the configuration.
4
5```js
6import parse from 'flow-config-parser';
7const config = parser.parse(fs.readFileSync('.flowconfig', 'utf8'));
8
9console.log(config.get('munge_underscores')); // true
10console.log(config.suppressesType('$flowIgnore')); // true
11console.log(config.suppressesType('Boolean')); // false
12console.log(config.ignoresFile('node_modules/react/react.js')); // true | false
13console.log(config.remapModule('foo.scss')); // 'object-shim.js'
14```
\No newline at end of file