0.0.1-20171018143429 • Published 7 years ago

flow-lib-nodejs v0.0.1-20171018143429

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

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)));