detect-flowtype

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i detect-flowtype

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • jokeyrhyme