secure-call

1.0.2 • Public • Published

secure-call

Secure callback invocation. secure-call encapsulates callback validation and invocation into one simple function call. This means it checks whether the specified callback exists and is valid before calling it.

Installation

npm install secure-call

Usage

The following code calls the callback cb with the arguments true, 212 and "yay!", provided cb is a valid function:

const call = require("secure-call");

call(cb, true, 212, "yay!");

Readme

Keywords

Package Sidebar

Install

npm i secure-call

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • awstuff