Skip to content

Files

Latest commit

c0d52e5 · Dec 30, 2020

History

History

flow-config-parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 13, 2019
Feb 7, 2019
Jan 13, 2019
Jan 13, 2019
Jan 13, 2019
Nov 19, 2016
Jan 4, 2017
Jan 6, 2017
Jan 4, 2017
Dec 30, 2020
Jan 13, 2019

Flow Config Parser

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

import fs from 'fs'
import parse from 'flow-config-parser';
const config = 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'