0.0.1 • Published 4 years ago

wrapist v0.0.1

Weekly downloads
1
License
AGPL-3.0
Repository
-
Last release
4 years ago

node-wrapist

Cleanly and effectively wrap functions, with full control.

Installation
npm install wrapist
Usage & Examples
const wrapist = require("wrapist");

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

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