{"_id":"cancelable","_rev":"168841","name":"cancelable","description":"Cancelable functions (Underscore/Lodash compatible)","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"fgribreau","email":""}],"time":{"modified":"2021-06-03T11:49:26.000Z","created":"2013-03-17T15:47:15.835Z","0.1.0":"2013-03-17T15:47:15.835Z"},"users":{},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"repository":{"type":"git","url":"git://github.com/FGRibreau/cancelable.git"},"versions":{"0.1.0":{"name":"cancelable","description":"Cancelable functions (Underscore/Lodash compatible)","version":"0.1.0","homepage":"https://github.com/FGRibreau/cancelable","author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"repository":{"type":"git","url":"git://github.com/FGRibreau/cancelable.git"},"bugs":{"url":"https://github.com/FGRibreau/cancelable/issues"},"licenses":[{"type":"MIT","url":"https://github.com/FGRibreau/cancelable/blob/master/LICENSE-MIT"}],"main":"lib/cancelable","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.3.15","lodash":"~1.0.1"},"keywords":["functions","underscore","lodash","cancelable"],"_id":"cancelable@0.1.0","dist":{"shasum":"f6c8a4ffcd654fe302c1ce5702ebbb2536a9864b","size":2732,"noattachment":false,"key":"/cancelable/-/cancelable-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cancelable/download/cancelable-0.1.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":""}],"directories":{},"publish_time":1363535235835,"_cnpm_publish_time":1363535235835,"_hasShrinkwrap":false}},"readme":"# Cancelable [![Build Status](https://drone.io/github.com/FGRibreau/cancelable/status.png)](https://drone.io/github.com/FGRibreau/cancelable/latest)\n\nCancelable functions for JavaScript.\n\n## Getting Started\nInstall the module with: `npm install cancelable`\n\n## Examples\n\n```javascript\nvar Cancelable = require('cancelable');\nvar fn = Cancelable(function(){console.log('plop');});\nfn(); // print \"plop\"\nfn.cancel();\nfn(); // do nothing\n```\n\nCancelable is compatible with [Underscore](http://underscorejs.org/) and [Lodash](http://lodash.com/) as a mixin.\n\n```javascript\nvar _ = require('underscore');\n_.mixin(require('cancelable').exports());\nvar fn = _.cancelable(function(){console.log('plop');});\nfn(); // print \"plop\"\nfn.cancel();\nfn(); // do nothing\n```\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).\n\n## Release History\nv0.1.0 3/17/2013 Initial release.\n\n## License\nCopyright (c) 2013 Francois-Guillaume Ribreau\nLicensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/FGRibreau/cancelable","bugs":{"url":"https://github.com/FGRibreau/cancelable/issues"}}