detect-flowtype
v2.0.0
Published
scan a directory to see if FlowType is in use
Downloads
18
Maintainers
Readme
detect-flowtype-js
scan a directory to see if FlowType is in use
Usage
npm install --save detect-flowtype
const { annotatedFiles } = require('detect-flowtype')
API
annotatedFiles({ dirPath: string }): Promise<string[]>
locate any files that contain // @flow
or /* @flow */
hasAnnotatedFiles({ dirPath: string }): Promise<boolean>
true
if any files contain // @flow
or /* @flow */
hasFlowConfig({ dirPath: string }): Promise<boolean>
true
if there is a ".flowconfig" file