Socket
Book a DemoInstallSign in
Socket

flow-config-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flow-config-parser

A parser for flow's configuration files.

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
687
65.54%
Maintainers
1
Weekly downloads
 
Created
Source

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'

FAQs

Package last updated on 08 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts