retrofox / flow

Adds static typing to JavaScript to improve developer productivity and code quality.

Home Page:http://flowtype.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flow

Flow is a static typechecker for JavaScript. To find out more about Flow, check out flowtype.org.

For a background on the project, please read our launch blog post.

Requirements

Flow works with:

  • Mac OS X
  • Linux (64-bit)

There are binary distributions for Mac OS X and many variants of Linux; you can also build it from source on almost any 64-bit Linux variant.

Building Flow

Flow is written in OCaml (OCaml 4.01.0 or higher is required) and (on Linux) requires libelf. You can install OCaml on Mac OS X and Linux by following the instructions at ocaml.org.

Once you have these dependencies, building Flow just requires running

make

This produces a bin folder containing the flow binary.

Note: at this time, the OCaml dependency prevents us from adding Flow to npm. Try flow-bin if you need a npm binary wrapper.

Installing Flow

Flow is simple to install: all you need is the flow binary on your PATH and you're good to go.

Using OPAM

You can also build and install flow via the OCaml OPAM package manager with one command:

opam install flowtype

If you don't have a new enough version of OCaml to compile Flow, you can also use OPAM to bootstrap a modern version. Install OPAM via the binary packages for your operating system and run:

opam init --comp=4.01.0
opam install flowtype
eval `opam config env`
flow --help

Documentation

Check out http://flowtype.org for documentation and examples.

Join the Flow community

  • Website: http://flowtype.org/
  • irc: #flowtype on Freenode
  • Twitter: @flowtype and #flowtype to keep up with the latest Flow news.

License

Flow is BSD-licensed. We also provide an additional patent grant.

About

Adds static typing to JavaScript to improve developer productivity and code quality.

http://flowtype.org/

License:Other


Languages

Language:OCaml 84.6%Language:JavaScript 12.5%Language:C 2.1%Language:Makefile 0.6%Language:CSS 0.1%Language:Emacs Lisp 0.1%Language:Shell 0.0%