{"name":"async-function","version":"0.1.0","keywords":["async","await","function","native"],"author":{"name":"EduardoRFS"},"license":"MIT","_id":"async-function@0.1.0","maintainers":[{"name":"eduardorfs","email":"theeduardorfs@gmail.com"}],"homepage":"https://github.com/EduardoRFS/async-function#readme","bugs":{"url":"https://github.com/EduardoRFS/async-function/issues"},"dist":{"shasum":"2423818736043e875cc3e1e0743ec31c02f37995","tarball":"http://registry-npm.ywwl.com/async-function/download/async-function-0.1.0.tgz","integrity":"sha512-Uv4rfQs2ENuwYPYIk7zJLG5d9iD6S2N/YKKwQ3HFcPzx7N/Jfv6KVoMZWLacMcevNI/LrPpzQxJ3vJC87rpnjw==","signatures":[{"sig":"MEUCIQDK6nYIoAe3w+83PnHebxWRqGMVMOCMmAH6aRqPsfK9hwIgL03nTRS5VVmg61jiUHl6L0rsNuuH1VI+O173LvmCGS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1673,"noattachment":false,"key":"/async-function/-/async-function-0.1.0.tgz"},"main":"index.js","_from":".","_shasum":"2423818736043e875cc3e1e0743ec31c02f37995","gitHead":"5ed020c7852e90f280517a06e4a4d3cb1d295e40","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"eduardorfs","email":"theeduardorfs@gmail.com"},"repository":{"url":"git+https://github.com/EduardoRFS/async-function.git","type":"git"},"_npmVersion":"3.10.3","description":"Expose internal AsyncFunction constructor","directories":{},"_nodeVersion":"7.0.0-pre","_npmOperationalInternal":{"tmp":"tmp/async-function-0.1.0.tgz_1473978405406_0.19965888373553753","host":"packages-12-west.internal.npmjs.com"},"readme":"# async-function <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nA function that returns the normally hidden `AsyncFunction` constructor, when available.\n\n## Getting started\n\n```sh\nnpm install --save async-function\n```\n\n## Usage/Examples\n\n```js\nconst assert = require('assert');\nconst AsyncFunction = require('async-function')();\n\nconst fn = new AsyncFunction('return 1');\n\nassert.equal(fn.toString(), 'async function anonymous(\\n) {\\nreturn 1\\n}');\n\nfn().then(x => {\n    assert.equal(x, 1);\n});\n```\n\n## Tests\n\nClone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/async-function\n[npm-version-svg]: https://versionbadg.es/ljharb/async-function.svg\n[deps-svg]: https://david-dm.org/ljharb/async-function.svg\n[deps-url]: https://david-dm.org/ljharb/async-function\n[dev-deps-svg]: https://david-dm.org/ljharb/async-function/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/async-function#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/async-function.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/async-function.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/async-function.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=async-function\n[codecov-image]: https://codecov.io/gh/ljharb/async-function/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/async-function/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/async-function\n[actions-url]: https://github.com/ljharb/async-function/actions\n","publish_time":1473978407011,"_cnpm_publish_time":1473978407011,"dist-tags":{"latest":"1.0.0"}}