flow-lib-nodejs

0.0.1-20171018143429 • Public • Published

Fn Flow library for NodeJS

This is an experimental library for using Fn Flow from NodeJS runtimes.

Hello, World!

const flow = require("flow-lib-nodejs");
 
const Flows = flow.Flows
const withFlow = flow.withFlow
 
function helloWorld() {
    return "Hello, World!";
}
 
withFlow({ helloWorld: helloWorld },
     () => Flows.currentFlow().supply(helloWorld).get(x => console.log(x)));

Readme

Keywords

none

Package Sidebar

Install

npm i flow-lib-nodejs

Weekly Downloads

1

Version

0.0.1-20171018143429

License

Apache-2.0

Last publish

Collaborators

  • msgodf