{"name":"@google-cloud/promisify","version":"0.2.0","description":"A simple utility for promisifying functions and classes.","main":"build/src/index.js","types":"build/src/index.d.ts","scripts":{"test":"npm run test-only","test-only":"nyc mocha build/test","codecov":"nyc report --reporter=json && codecov -f coverage/*.json","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile","posttest":"npm run check"},"keywords":[],"files":["build/src"],"author":{"name":"Google Inc."},"license":"Apache-2.0","devDependencies":{"@types/mocha":"^5.2.4","@types/node":"^10.5.2","@types/sinon":"^5.0.1","codecov":"^3.0.4","gts":"^0.7.1","hard-rejection":"^1.0.0","mocha":"^5.2.0","nyc":"^12.0.2","sinon":"^6.1.3","source-map-support":"^0.5.6","typescript":"^2.9.0"},"nyc":{"exclude":["build/test"]},"_id":"@google-cloud/promisify@0.2.0","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"justinbeckwith","email":"justin.beckwith@gmail.com"},"dist":{"integrity":"sha512-KX3+Du90pECENww0S/k0Qgf2fZAz8PQFyxwOkGzoIC0gX8WoW4/kic/2qNyV1AKKJmBYtnA43jRqWk/9anR5Jg==","shasum":"b7908c2a4bb66d8f16964c45793543fadba27cfc","tarball":"http://registry-npm.ywwl.com/@google-cloud/promisify/download/@google-cloud/promisify-0.2.0.tgz","fileCount":7,"unpackedSize":22840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRWq4CRA9TVsSAnZWagAAjvUP/3iJddt+CSHrPh4/pcjh\nyGADxZx62GDViAVzfvFi/no1p7dLt1Jj+B2owEzPuiHZh9CWv97ruzwhWTmK\nHKPe1EebfJQitnXwdiTeDJkZZeinNOZjmnbTh1PxwFYapFzaoBnR/Ty9CWIS\nQbk+M4Q54Du1VKpey9SCbgcjBuqOYFoSvG2U5MQC/pwyL/hkpYixeoxDq1Hr\ncY8t80iJ6qkvMCPGI0jz6SQ1iNXJybzJQYyxXlRQkkud9jhRBoSIShFUJSdN\nTlmOxVTImh5qdoaD87m/4MEYyfwBK4YEILEqdlU9hZ1ugOKPNoK9ciGEQH7A\nxRiwwgle5C97NVbDe5eOBOzNsY9Wzs8UlQrWSUhZEuuMQJoaONzXsCar2I6N\n0gOXhbq/SP+ooI2jJIiRcM6MiqGUUinnL88bFaSLT/3BKh38pj611e/b3hNs\n6q53OtIfB0xNB8ptRevE6chkJylf9k1T1INcreALkUJKeM/QZ+YgLNXEcRG/\nmXfMrQiFPosrAbMG0vb2IRJYV8gMryUggSBA+YkxQiSoXhJsG1spXvX4XxHT\nWnMSxtWWXPGL/t4qe6+45pewlDBVF1SuDeyvBvrGPP5nlMK0Rbnrz6738cFG\n4CctVvb0gjVrx3rtonB3Dco6U1F27rHjgClWfis0VBBSOHaQpNcDgapj96jA\nJcXd\r\n=Dplj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEW1YY9tVuc7AlzoYcJMgpYr0yJ18nXuwJBpFOmafXDzAiEA1sx/JjrSEmPtpL4JBL8HN8KAFtf1mST1LBsMOftQK+g="}],"size":7716,"noattachment":false,"key":"/@google-cloud/promisify/-/@google-cloud/promisify-0.2.0.tgz"},"maintainers":[{"name":"acen","email":"anassri@google.com"},{"name":"callmehiphop","email":"callmehiphop@gmail.com"},{"name":"crwilcox","email":"npm@crwilcox.com"},{"name":"dominicdkramer","email":"dominicdkramer@google.com"},{"name":"fenster","email":"npm@fenster.name"},{"name":"google-admin","email":"github-admin@google.com"},{"name":"google-cloud-admin","email":"google-cloud@google.com"},{"name":"google-node-team","email":"node-team-npm@google.com"},{"name":"jdobry","email":"jason.dobry@gmail.com"},{"name":"jgeewax","email":"jj@geewax.org"},{"name":"justinbeckwith","email":"justin.beckwith@gmail.com"},{"name":"kjin","email":"kelvinjin@google.com"},{"name":"lukesneeringer","email":"lukesneeringer@google.com"},{"name":"matthewloring","email":"mattloring@google.com"},{"name":"nolanmar","email":"nolanmar@google.com"},{"name":"ofrobots","email":"ofrobots@google.com"},{"name":"stephenplusplus","email":"stephenplusplusplus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promisify_0.2.0_1531275960444_0.7114982928988545"},"_hasShrinkwrap":false,"readme":"[//]: # \"This README.md file is auto-generated, all changes to this file will be lost.\"\n[//]: # \"To regenerate it, use `python -m synthtool`.\"\n<img src=\"https://avatars2.githubusercontent.com/u/2810941?v=3&s=96\" alt=\"Google Cloud Platform logo\" title=\"Google Cloud Platform\" align=\"right\" height=\"96\" width=\"96\"/>\n\n# [Google Cloud Common Promisify: Node.js Client](https://github.com/googleapis/nodejs-promisify)\n\n[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)\n[![npm version](https://img.shields.io/npm/v/@google-cloud/promisify.svg)](https://www.npmjs.org/package/@google-cloud/promisify)\n\n\n\n\nA simple utility for promisifying functions and classes.\n\n\nA comprehensive list of changes in each version may be found in\n[the CHANGELOG](https://github.com/googleapis/nodejs-promisify/blob/main/CHANGELOG.md).\n\n* [Google Cloud Common Promisify Node.js Client API Reference][client-docs]\n\n* [github.com/googleapis/nodejs-promisify](https://github.com/googleapis/nodejs-promisify)\n\nRead more about the client libraries for Cloud APIs, including the older\nGoogle APIs Client Libraries, in [Client Libraries Explained][explained].\n\n[explained]: https://cloud.google.com/apis/docs/client-libraries-explained\n\n**Table of contents:**\n\n\n* [Quickstart](#quickstart)\n\n  * [Installing the client library](#installing-the-client-library)\n  * [Using the client library](#using-the-client-library)\n* [Samples](#samples)\n* [Versioning](#versioning)\n* [Contributing](#contributing)\n* [License](#license)\n\n## Quickstart\n\n### Installing the client library\n\n```bash\nnpm install @google-cloud/promisify\n```\n\n\n### Using the client library\n\n```javascript\nconst {promisify} = require('@google-cloud/promisify');\n\n/**\n * This is a very basic example function that accepts a callback.\n */\nfunction someCallbackFunction(name, callback) {\n  if (!name) {\n    callback(new Error('Name is required!'));\n  } else {\n    callback(null, `Well hello there, ${name}!`);\n  }\n}\n\n// let's promisify it!\nconst somePromiseFunction = promisify(someCallbackFunction);\n\nasync function quickstart() {\n  // now we can just `await` the function to use it like a promisified method\n  const [result] = await somePromiseFunction('nodestronaut');\n  console.log(result);\n}\nquickstart();\n\n```\nIt's unlikely you will need to install this package directly, as it will be\ninstalled as a dependency when you install other `@google-cloud` packages.\n\n\n## Samples\n\nSamples are in the [`samples/`](https://github.com/googleapis/nodejs-promisify/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.\n\n| Sample                      | Source Code                       | Try it |\n| --------------------------- | --------------------------------- | ------ |\n| Quickstart | [source code](https://github.com/googleapis/nodejs-promisify/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-promisify&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |\n\n\n\nThe [Google Cloud Common Promisify Node.js Client API Reference][client-docs] documentation\nalso contains samples.\n\n## Supported Node.js Versions\n\nOur client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).\nLibraries are compatible with all current _active_ and _maintenance_ versions of\nNode.js.\nIf you are using an end-of-life version of Node.js, we recommend that you update\nas soon as possible to an actively supported LTS version.\n\nGoogle's client libraries support legacy versions of Node.js runtimes on a\nbest-efforts basis with the following warnings:\n\n* Legacy versions are not tested in continuous integration.\n* Some security patches and features cannot be backported.\n* Dependencies cannot be kept up-to-date.\n\nClient libraries targeting some end-of-life versions of Node.js are available, and\ncan be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).\nThe dist-tags follow the naming convention `legacy-(version)`.\nFor example, `npm install @google-cloud/promisify@legacy-8` installs client libraries\nfor versions compatible with Node.js 8.\n\n## Versioning\n\nThis library follows [Semantic Versioning](http://semver.org/).\n\n\n\nThis library is considered to be **stable**. The code surface will not change in backwards-incompatible ways\nunless absolutely necessary (e.g. because of critical security issues) or with\nan extensive deprecation period. Issues and requests against **stable** libraries\nare addressed with the highest priority.\n\n\n\n\n\n\nMore Information: [Google Cloud Platform Launch Stages][launch_stages]\n\n[launch_stages]: https://cloud.google.com/terms/launch-stages\n\n## Contributing\n\nContributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-promisify/blob/main/CONTRIBUTING.md).\n\nPlease note that this `README.md`, the `samples/README.md`,\nand a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)\nare generated from a central template. To edit one of these files, make an edit\nto its templates in\n[directory](https://github.com/googleapis/synthtool).\n\n## License\n\nApache Version 2.0\n\nSee [LICENSE](https://github.com/googleapis/nodejs-promisify/blob/main/LICENSE)\n\n[client-docs]: https://googleapis.dev/nodejs/promisify/latest\n\n[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png\n[projects]: https://console.cloud.google.com/project\n[billing]: https://support.google.com/cloud/answer/6293499#enable-billing\n\n[auth]: https://cloud.google.com/docs/authentication/getting-started\n","publish_time":1531275960533,"_cnpm_publish_time":1531275960533,"dist-tags":{"latest":"6.2.1","legacy-10":"2.0.4","legacy-14":"4.0.0","legacy-18":"5.1.0","legacy-8":"1.0.4"}}