{"_id":"maybe-callback","_rev":"5-db814f8486cd95daa4c9679e3d4f59fc","name":"maybe-callback","description":"Maybe call a callback if it's a function","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"maybe-callback","version":"1.0.0","description":"Maybe call a callback if its a function","main":"index.js","scripts":{"test":"npm run cover","cover":"istanbul cover --report cobertura --print detail node_modules/.bin/cached-tape -- test/index.js && istanbul check-coverage --branches=100","view-cover":"istanbul report html && opn ./coverage/index.html"},"repository":{"type":"git","url":"https://github.com/robskillington/maybe-callback.git"},"keywords":["utility","events","callbacks"],"author":{"name":"Rob Skillington"},"license":"MIT","bugs":{"url":"https://github.com/robskillington/maybe-callback/issues"},"homepage":"https://github.com/robskillington/maybe-callback","devDependencies":{"cached-tape":"^2.0.0"},"gitHead":"296407a58d4e453ccea179da699d2abb0410ab6b","_id":"maybe-callback@1.0.0","_shasum":"055c342252658cf8369c5dd49e1ad23a938c209d","_from":".","_npmVersion":"1.4.25","_npmUser":{"name":"robskillington","email":"rob.skillington@gmail.com"},"maintainers":[{"name":"robskillington","email":"rob.skillington@gmail.com"}],"dist":{"shasum":"055c342252658cf8369c5dd49e1ad23a938c209d","tarball":"https://registry.npmjs.org/maybe-callback/-/maybe-callback-1.0.0.tgz","integrity":"sha512-7/dLp+T2Z9keggtwVEyjdyW2uuW0XQqKJopHppYZm4BFjOjpa050eo6475XHcx9uf+nDUm9vyyIKTElPD73/OQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHSy0SVL3SzOEFhTqvDVyFlEWxAZCzak0hbVB0Kg5ikAiBBZwuq67j6/xB39i9dosnGrvKkpKVKEBx6Up1WCAhHWg=="}]}},"2.1.0":{"name":"maybe-callback","version":"2.1.0","description":"Maybe call a callback if it's a function","main":"index.js","scripts":{"test":"npm run cover","cover":"istanbul cover --report cobertura --print detail node_modules/.bin/cached-tape -- test/index.js && istanbul check-coverage --branches=100","view-cover":"istanbul report html && opn ./coverage/index.html"},"repository":{"type":"git","url":"git+https://github.com/robskillington/maybe-callback.git"},"keywords":["utility","events","callbacks"],"author":{"name":"Rob Skillington"},"license":"MIT","bugs":{"url":"https://github.com/robskillington/maybe-callback/issues"},"homepage":"https://github.com/robskillington/maybe-callback","devDependencies":{"cached-tape":"^2.0.0","istanbul":"~0.4.2"},"gitHead":"497560b9c606becf506d53c6ec6aaad55ac37b9b","_id":"maybe-callback@2.1.0","_shasum":"8afa0ba7b691a7ab123e7f12f65e32bb5d1f8243","_from":".","_npmVersion":"3.4.1","_nodeVersion":"0.10.32","_npmUser":{"name":"robskillington","email":"rob.skillington@gmail.com"},"dist":{"shasum":"8afa0ba7b691a7ab123e7f12f65e32bb5d1f8243","tarball":"https://registry.npmjs.org/maybe-callback/-/maybe-callback-2.1.0.tgz","integrity":"sha512-P8CekEs8v3zn0bM/tXgfL0UkBXO//BAQkoAmn8s+eFmH451+7wBWY2aKEmyItoZUcbpaI2OCcM6tcuIil/n5mA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHvUYhS6XCWCiU6RqqOhVefL37Tk/6p4uVJhPc0HQEIAIhAKbKCxC+s9uh06m+sFytlWoYylXip1MmKqe5SN9pxsoM"}]},"maintainers":[{"name":"robskillington","email":"rob.skillington@gmail.com"}]}},"readme":"# maybe-callback [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]\n\n> Maybe call a callback if it really is who it says it is.\n\n\n## Installation\n\n[Node.js](http://nodejs.org/) is required. To install, type this at the command line:\n```shell\nnpm install maybe-callback\n```\n\n\n## Usage\n```js\nvar maybeCallback = require('maybe-callback');\n \nfunction callback(arg) {\n    return arg + 1;\n}\n\nmaybeCallback(callback)(1);  //=> 2\nmaybeCallback(null)(1);  //=> undefined\n\nvar once = maybeCallback.once(callback);\nonce(1); //=> 2\nonce(1); //=> undefined\n```\n\n\n[npm-image]: https://img.shields.io/npm/v/maybe-callback.svg\n[npm-url]: https://npmjs.org/package/maybe-callback\n[travis-image]: https://img.shields.io/travis/robskillington/maybe-callback.svg\n[travis-url]: https://travis-ci.org/robskillington/maybe-callback\n","maintainers":[{"name":"robskillington","email":"rob.skillington@gmail.com"}],"time":{"modified":"2022-06-19T17:01:34.986Z","created":"2014-09-30T19:16:38.971Z","1.0.0":"2014-09-30T19:16:38.971Z","2.1.0":"2016-01-26T19:35:45.712Z"},"homepage":"https://github.com/robskillington/maybe-callback","keywords":["utility","events","callbacks"],"repository":{"type":"git","url":"git+https://github.com/robskillington/maybe-callback.git"},"author":{"name":"Rob Skillington"},"bugs":{"url":"https://github.com/robskillington/maybe-callback/issues"},"license":"MIT","readmeFilename":"README.md"}