{"_id":"async.wrapsync","_rev":"4-18d73490ed66559d76c14078df1b8b27","name":"async.wrapsync","description":"Take a sync function and make it async, passing its return value to a callback.","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"async.wrapsync","description":"Take a sync function and make it async, passing its return value to a callback.","homepage":"https://github.com/Kikobeats/async.wrapsync","version":"1.0.1","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/async.wrapsync.git"},"bugs":{"url":"https://github.com/Kikobeats/async.wrapsync/issues"},"keywords":["async","wrap","sync","wrapasync","module","asyncify","promise"],"dependencies":{"lodash.isobject":"~3.0.2","lodash.restparam":"~3.6.1"},"devDependencies":{"bluebird":"latest","browserify":"latest","coffee-script":"latest","coffeeify":"latest","es6-promise":"latest","gulp":"latest","gulp-header":"latest","gulp-uglify":"latest","gulp-util":"latest","mocha":"latest","native-promise-only":"latest","pinkie-promise":"latest","rsvp":"latest","should":"latest","vinyl-buffer":"latest","vinyl-source-stream":"latest"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"04e1f8af74e4d17d97b1943da37c085e193d59ae","_id":"async.wrapsync@1.0.1","_shasum":"6cafdf367656fd1d0b5beb885effee6c07cb6415","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"6cafdf367656fd1d0b5beb885effee6c07cb6415","tarball":"https://registry.npmjs.org/async.wrapsync/-/async.wrapsync-1.0.1.tgz","integrity":"sha512-/iHTTaDkoHtzwah4Mkbq1F8QxpzTi5SDtdOdqqQc5A4KGFZONPDTUfRnjjJcmbSztBe2cRahG54ms9r4wjBsGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDle9zopi4AUH8J6Yy74GVRI+alpsxcIPbVOfggVaE54wIhANb89GnYXYlRkYooXEB9BiUR/jGXC2OT0z4IRqWN47+9"}]},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}]},"1.0.2":{"name":"async.wrapsync","description":"Take a sync function and make it async, passing its return value to a callback.","homepage":"https://github.com/Kikobeats/async.wrapsync","version":"1.0.2","main":"./index.js","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/async.wrapsync.git"},"bugs":{"url":"https://github.com/Kikobeats/async.wrapsync/issues"},"keywords":["async","async-modularized","wrapsync"],"dependencies":{"lodash.isobject":"~3.0.2","lodash.restparam":"~3.6.1"},"devDependencies":{"bluebird":"latest","browserify":"latest","coffee-script":"latest","coffeeify":"latest","es6-promise":"latest","gulp":"latest","gulp-header":"latest","gulp-uglify":"latest","gulp-util":"latest","mocha":"latest","native-promise-only":"latest","pinkie-promise":"latest","rsvp":"latest","should":"latest","vinyl-buffer":"latest","vinyl-source-stream":"latest"},"engines":{"node":">= 0.10.0","npm":">= 1.4.0"},"scripts":{"test":"sh test/test.sh"},"license":"MIT","gitHead":"7e9e7e4eca8e333225b008f8627a2cda9df33f94","_id":"async.wrapsync@1.0.2","_shasum":"ce284ac7e0b121a0db4ce1bdd47ef64053d071c3","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"ce284ac7e0b121a0db4ce1bdd47ef64053d071c3","tarball":"https://registry.npmjs.org/async.wrapsync/-/async.wrapsync-1.0.2.tgz","integrity":"sha512-RE8fBVaKeTVD9xV8Oxc0tVoOdz8T5gdGNgHiYATESr469IGoKn8kNoLf5y386NcZdUEIwWnY3J1r0z1P0W5X3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUiYOY9mYDIEXORj9kVwMIXrz8dsEuFBc6sagMdDD0VAiBaeMBfir7Y3oTgVb8XDMqpUs46D9uhwPFJDnpckarKaA=="}]},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}]}},"readme":"# async.wrapsync\n\n![Last version](https://img.shields.io/github/tag/Kikobeats/async.wrapsync.svg?style=flat-square)\n[![Build Status](http://img.shields.io/travis/Kikobeats/async.wrapsync/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/async.wrapsync)\n[![Dependency status](http://img.shields.io/david/Kikobeats/async.wrapsync.svg?style=flat-square)](https://david-dm.org/Kikobeats/async.wrapsync)\n[![Dev Dependencies Status](http://img.shields.io/david/dev/Kikobeats/async.wrapsync.svg?style=flat-square)](https://david-dm.org/Kikobeats/async.wrapsync#info=devDependencies)\n[![NPM Status](http://img.shields.io/npm/dm/async.wrapsync.svg?style=flat-square)](https://www.npmjs.org/package/async.wrapsync)\n[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/kikobeats)\n\n> Take a sync function and make it async, passing its return value to a callback. Based on [async#asyncify](https://github.com/caolan/async#asyncifyfunc) as module.\n\n## Install\n\n```bash\nnpm install async.wrapsync --save\n```\n\nIf you want to use in the browser (powered by [Browserify](http://browserify.org/)):\n\n```bash\nbower install async.wrapsync --save\n```\n\nand later link in your HTML:\n\n```html\n<script src=\"bower_components/async.wrapsync/dist/async.wrapsync.js\"></script>\n```\n\n## Usage\n\n```js\nvar wrapSync = require('async.wrapsync');\n\nvar parse = wrapSync(JSON.parse);\n\nparse('{\\\"foo\\\":bar}', function(err, result) {\n  // data is the result of parsing the text.\n  // If there was a parsing error, it would have been caught.\n});\n```\n\n## API\n\n### wrapSync(fn)\n\nTake a sync function and make it async, passing its return value to a callback. This is useful for plugging sync functions into a waterfall, series, or other async functions. Any arguments passed to the generated function will be passed to the wrapped function (except for the final callback argument). Errors thrown will be passed to the callback\n\n__Arguments__\n\n* `fn` - a sync function.\n\n## License\n\nMIT © [Kiko Beats](http://kikobeats.com)\n","maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"time":{"modified":"2022-06-13T03:38:37.503Z","created":"2015-12-13T18:11:14.479Z","1.0.1":"2015-12-13T18:11:14.479Z","1.0.2":"2015-12-13T20:15:01.914Z"},"homepage":"https://github.com/Kikobeats/async.wrapsync","keywords":["async","async-modularized","wrapsync"],"repository":{"type":"git","url":"git+https://github.com/kikobeats/async.wrapsync.git"},"author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"bugs":{"url":"https://github.com/Kikobeats/async.wrapsync/issues"},"license":"MIT","readmeFilename":"README.md"}