{"name":"typeable-promisify","description":"Wrap any node-style callback function with a promise.","version":"2.0.0","main":"index.js","author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"MIT","dependencies":{"any-promise":"^1.3.0"},"devDependencies":{"flow-bin":"^0.46.0"},"gitHead":"23ea9727af099b4b6f4f5a17c24719e271a58e0c","_id":"typeable-promisify@2.0.0","scripts":{},"_shasum":"b8f2bad03e078dbc72db7368eaa370049f6ed11f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"b8f2bad03e078dbc72db7368eaa370049f6ed11f","tarball":"http://registry-npm.ywwl.com/typeable-promisify/download/typeable-promisify-2.0.0.tgz","integrity":"sha512-YWO/bnaxPJUlqXMm6YEsLIW8+dFtahI0NdjIam3me+6WAkXEVbXN3XrJI2vNoP/8O3XlWRVjUvu9ewTJxlstTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn9A/7Fk6It5fAbNv39Sf9Mq9Qeedr9Xf4Cm6w0/gr9wIgBHiDzhDs/b+nw6esLSPz1e93hCwRZogjJ2ghobZQ3Yg="}],"size":2450,"noattachment":false,"key":"/typeable-promisify/-/typeable-promisify-2.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeable-promisify-2.0.0.tgz_1496125569727_0.7176276475656778"},"directories":{},"readme":"# typeable-promisify\n\n- Wrap any node-style callback function with a promise.\n- Allows you to specify your own type annotations.\n- Strongly typed.\n\n```js\n// @flow\nimport promisify from 'typeable-promisify';\n\nlet writeFileAsync = (filePath: string, fileContents: string): Promise<void> => {\n  return promisify(cb => writeFile(filePath, fileContents, cb));\n};\n\nwriteFileAsync('fileName', 'fileContents').then(() => {});\n```\n","publish_time":1496125569905,"_cnpm_publish_time":1496125569905,"dist-tags":{"latest":"2.0.1"}}