flow-config-parser
A parser for flow's configuration files.
Last updated 3 years ago by codemix .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install flow-config-parser 
SYNC missed versions from official npm registry.

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'

Current Tags

  • 0.3.0                                ...           latest (3 years ago)

8 Versions

  • 0.3.0                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |