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