npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

flow-config-parser

0.3.0

@codemix

npmHomeRepoSnykSocket
Downloads:3328
$ npm install flow-config-parser
DailyWeeklyMonthlyYearly

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'