{"name":"typeable-promisify","description":"Wrap any node-style callback function with a promise.","version":"1.0.1","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":"7ea84a0a5aff34c16993206ab56bfe1fdda2b70b","_id":"typeable-promisify@1.0.1","scripts":{},"_shasum":"005d43502e7753affccc8af8c05e3ac24f30e617","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"005d43502e7753affccc8af8c05e3ac24f30e617","tarball":"http://registry-npm.ywwl.com/typeable-promisify/download/typeable-promisify-1.0.1.tgz","integrity":"sha512-/1gZ0KTZzxBn+jQZCPX5fWzcwhelG1B/81BUZCiproV3XW88jAdWI0LuAFU20bk0DhcfouaLG63VwjiKG5R4+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVwL1lctZdNG+cHwVxKYyrhD8W+k0U3lWW/kfLYOBYdAiB4T6d7sZUsWsxac5MrZ4ADmGVQm/VCA/gTYH3RLdq7yA=="}],"size":2439,"noattachment":false,"key":"/typeable-promisify/-/typeable-promisify-1.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/typeable-promisify-1.0.1.tgz_1494561844241_0.6704877612646669"},"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":1494561844517,"_cnpm_publish_time":1494561844517,"dist-tags":{"latest":"2.0.1"}}