detect-flowtype-js
scan a directory to see if FlowType is in use
Usage
npm install --save detect-flowtype
const annotatedFiles =
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