jokeyrhyme / detect-flowtype-js

scan a directory to see if FlowType is in use

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

scan a directory to see if FlowType is in use

License:MIT License


Languages

Language:JavaScript 100.0%