// Setup codeasyncfunctionhello(){return'hello'}// More setup codeasyncfunctionworld(data){return`${data}, world!`}// The good stuffconstresult=awaitflow.promisify().from(hello).to(world).run()// result: hello, world!- Zero dependencies
- Tiny library size! Under 2.50 KB minified and under 1KB gzipped!
- Cross Platform - Runs everywhere Javascript does
- Declarative style (tell the library WHAT you want, not how you want it) - 1234
- Functions have a lot of freedom, use: return values, Promises, async/await, or the traditional callback. Flow gets out of your way!
npm install https://github.com/NuFlow/FlowJS --save
constFlow=require('flow')constflow=newFlow()- Rollup for building and bundling
- FlowType for static type-checking
- Jest for runtime tests
- WallabyJS for debugging and helping Jest along