2.0.0 • Published 7 years ago

detect-flowtype v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

detect-flowtype-js AppVeyor Status npm Travis CI Status Greenkeeper badge

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

See Also