partial-application-tree
This module is designed to simplify making your library's codebase functional via partial application.
By using partial applicatio on your functions you are able to keep them pure when they would have otherwise been impure.
const doAjaxRequest = { // some ajax}; const myFunc = { return ;};
As you can see in this code example myFunc
is a pure function (when given a pure function). This allows it to be easily tested if you pass in a pure stub.
Usage
// Codebaseconst leaf = 'leaf'; const node = ; // Your wiring up code (usually in index.js or module.js);; const tree = 'node' 'leaf'; const codebase = ;
There is added support for nested nodes. The paths are automatically resolved.
const tree = 'nested.node' 'deep.leaf';