An open API service indexing awesome lists of open source software.

https://github.com/ariesclark/node-wrapist

Cleanly and effectively wrap functions, with full control.
https://github.com/ariesclark/node-wrapist

Last synced: 6 months ago
JSON representation

Cleanly and effectively wrap functions, with full control.

Awesome Lists containing this project

README

          

# node-wrapist
Cleanly and effectively wrap functions, with full control.

##### Installation
```
npm install wrapist
```

##### Usage & Examples
```javascript
const wrapist = require("wrapist");

// function (context, options || array);

// Wrap single function.
wrapist(this, {
fn: "get",
ctx: this.util,
rpl: function (rtnv, options) {
// rtnv, refers to the original return value.
return rtnv;
}
});
```