babel-add-flow-comments

0.4.0 • Public • Published

babel-add-flow-comments

Build Status All Contributors

add/remove flow comments

Install

$ npm install --dev babel-add-flow-comments

API

default: flowComment(programPath: Path)

add // @flow to top.

addFlowComment(path: Path)

path

Type: Object

add // @flow

removeFlowComment(comments)

remove // @flow for /* @flow */

isFlowFile(path): boolean

when // @flow, return true.

Contributors

Thanks goes to these wonderful people (emoji key):

akameco
akameco

💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i babel-add-flow-comments

    Weekly Downloads

    10

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    6.52 kB

    Total Files

    6

    Last publish

    Collaborators

    • akameco