{"name":"typeable-promisify","description":"Wrap any node-style callback function with a promise.","version":"1.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":"b67dc54bbcdf9c5367929b4b9a1eeb998c7a042b","_id":"typeable-promisify@1.0.0","scripts":{},"_shasum":"679d134725ed0654072d05b4cd539cdd4de13412","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"679d134725ed0654072d05b4cd539cdd4de13412","tarball":"http://registry-npm.ywwl.com/typeable-promisify/download/typeable-promisify-1.0.0.tgz","integrity":"sha512-wMnyi3gcUluOmqW+lb8Nvh7cNHpasyNL+wEeNoGlI8RpE5i6/QO9rXVZ47J5Vil6eakc1ym0RCi5CMPqJmMttw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSgXaOX/WXV1bW03rA+KjoRqM3ssYqZFZ2LpT7p3lPGAIhAJRLC5okAHcfebYph0yreelPj/7s4lxDCZAuMpdCwu3l"}],"size":2410,"noattachment":false,"key":"/typeable-promisify/-/typeable-promisify-1.0.0.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/typeable-promisify-1.0.0.tgz_1494561262470_0.7289900050964206"},"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":1494561262717,"_cnpm_publish_time":1494561262717,"dist-tags":{"latest":"2.0.1"}}