{"name":"typeable-promisify","description":"Wrap any node-style callback function with a promise.","version":"2.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":"030f542ade8dbdb6322f369c51ffee7eed637a78","_id":"typeable-promisify@2.0.1","scripts":{},"_shasum":"1baee82abaf13280198eb11e98589c881a6bd80d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"1baee82abaf13280198eb11e98589c881a6bd80d","tarball":"http://registry-npm.ywwl.com/typeable-promisify/download/typeable-promisify-2.0.1.tgz","integrity":"sha512-gx8NpMc0gCSzJLrZ5rzHBE4oH3soWwN4OLdhnDhWxuuhzPAvEnSO67lFDG1Q1r3/+yn++gTrk8rpUxPWv2UW/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBszL+Ln+mvxBXHD1yAqISy4m0isN3/FgeuLRdC9dB1mAiBXoSj5V7vLijmtfKl2RfLCxsWgVmlIaettF58Bvvb+7A=="}],"size":2427,"noattachment":false,"key":"/typeable-promisify/-/typeable-promisify-2.0.1.tgz"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typeable-promisify-2.0.1.tgz_1502774302626_0.611874740337953"},"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":1502774302700,"_cnpm_publish_time":1502774302700,"dist-tags":{"latest":"2.0.1"}}