{"_id":"node-rest-client-promise","_rev":"12-e6a08254b5946fa696e8f8f119399b0c","name":"node-rest-client-promise","description":"node-rest-client, but with promises","dist-tags":{"latest":"3.1.1"},"versions":{"1.0.0":{"name":"node-rest-client-promise","version":"1.0.0","description":"node-rest-client, but with promises","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["rest","node-rest-client","promises"],"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"license":"MIT","bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","dependencies":{"bluebird":"^3.4.7","node-rest-client":"^2.5.0"},"gitHead":"9411c2d1850beb93e0190e2096b21d004ea1b9c2","_id":"node-rest-client-promise@1.0.0","_shasum":"3902e310a328d16309320d307504b8afa2484931","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"dodevops","email":"automation@kps.com"},"dist":{"shasum":"3902e310a328d16309320d307504b8afa2484931","tarball":"https://registry.npmjs.org/node-rest-client-promise/-/node-rest-client-promise-1.0.0.tgz","integrity":"sha512-507+wNkavxRHDlE5eh1OaKI3zCPfh+c5PDqRPqwPWlmC/hnlInpNLS3wnYUMPNiPGicdsorszhgQ7Lq8gqBbuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtdoprZnp35CpbsI1PkvHwz5cN+lV3jHyPeTrY2pBxDQIhAOPV4Kk6x1NSWrBW72fhNV3r64MfPsmumM80rQABbRZx"}]},"maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/node-rest-client-promise-1.0.0.tgz_1486655913772_0.498100042110309"},"directories":{}},"1.0.1":{"name":"node-rest-client-promise","version":"1.0.1","description":"node-rest-client, but with promises","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["rest","node-rest-client","promises"],"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"license":"MIT","bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","dependencies":{"bluebird":"^3.4.7","node-rest-client":"^2.5.0"},"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.1","grunt-mocha-test":"^0.13.2","gruntify-eslint":"^3.1.0","mocha":"^3.2.0"},"gitHead":"187caa2a607b560b7b9fa1fa7ecf21091a62f5f7","_id":"node-rest-client-promise@1.0.1","_shasum":"eddb61c9eef8d1f62eee94d35c134b22d6a7278d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"dodevops","email":"automation@kps.com"},"dist":{"shasum":"eddb61c9eef8d1f62eee94d35c134b22d6a7278d","tarball":"https://registry.npmjs.org/node-rest-client-promise/-/node-rest-client-promise-1.0.1.tgz","integrity":"sha512-rp86OiYCtiyfdmqbZrSZP4zkNA2drNLIaBHHoMvrdxr0EbJkSVxX9LnmmX3Gi3UeotEPwfRpQUyQOiTT3AfYxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYmLpxmPPJtkQawmfOBt5ULTML2c5kapJ+Yq0RNMSlBAIgHw3roMHiN0iJaIAIR+dJiqVsUFdEGLEWp0WGSnOFtH8="}]},"maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-rest-client-promise-1.0.1.tgz_1486720593510_0.448195788776502"},"directories":{}},"2.0.0":{"name":"node-rest-client-promise","version":"2.0.0","description":"node-rest-client, but with promises","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["rest","node-rest-client","promises"],"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"license":"MIT","bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","dependencies":{"bluebird":"^3.4.7","node-rest-client":"^2.5.0"},"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.1","grunt-mocha-test":"^0.13.2","gruntify-eslint":"^3.1.0","mocha":"^3.2.0"},"gitHead":"c16870a2cfc4b4114d2460416e08f0cab7c7e174","_id":"node-rest-client-promise@2.0.0","_shasum":"c61763a9a6358c157343bc844d0525894b1e4daf","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"dodevops","email":"automation@kps.com"},"dist":{"shasum":"c61763a9a6358c157343bc844d0525894b1e4daf","tarball":"https://registry.npmjs.org/node-rest-client-promise/-/node-rest-client-promise-2.0.0.tgz","integrity":"sha512-Iwgy6Rti2JIgbl3WbU6kNS7HUphhaMoUuxOXFp8GoPQEqTEyCml74J32mMXginsmHjWLpAM+5wFGX2nSKdcI7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIe/2V9Lq7c1j7DE68RzBqoB/coUYxCOhxgYTwz80qfgIgVrWKwWuul7Rnno8TJVM1MYUGKVGYMyluSKsSyAQ8nns="}]},"maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/node-rest-client-promise-2.0.0.tgz_1488793327812_0.6820785806048661"},"directories":{}},"3.0.0":{"name":"node-rest-client-promise","version":"3.0.0","description":"node-rest-client, but with promises","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["rest","node-rest-client","promises"],"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"license":"MIT","bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","dependencies":{"bluebird":"^3.4.7","node-rest-client":"^3.1.0"},"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.1","grunt-mocha-test":"^0.13.2","gruntify-eslint":"^3.1.0","mocha":"^3.2.0"},"gitHead":"034b420ae127d36c1534d839e8e0af8d2f9d2db7","_id":"node-rest-client-promise@3.0.0","_shasum":"590a474d278cd8d9b897ccce671102af94c6b4cb","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"dodevops","email":"automation@kps.com"},"dist":{"shasum":"590a474d278cd8d9b897ccce671102af94c6b4cb","tarball":"https://registry.npmjs.org/node-rest-client-promise/-/node-rest-client-promise-3.0.0.tgz","integrity":"sha512-BtYYCmCQZgW36FYPK72VpCqboYiOALXM4HDU/yz/tSPL6JC48TYXf1hqJVcXWuHYJwub/rAMWVOARU9qP+5zsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2tSDP9oOn4aRi1Cm8tcbgEA/dNsePyPjTW5k7lqHRLAiAm2LB1n7ZE5/Nom4S8/CMQ19BTJ5nuW3wC707yAEtJ5w=="}]},"maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-rest-client-promise-3.0.0.tgz_1503907363924_0.7722891801968217"},"directories":{}},"3.1.0":{"name":"node-rest-client-promise","version":"3.1.0","description":"node-rest-client, but with promises","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["rest","node-rest-client","promises"],"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"license":"MIT","bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","dependencies":{"bluebird":"^3.4.7","node-rest-client":"^3.1.0"},"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.1","grunt-mocha-test":"^0.13.2","gruntify-eslint":"^3.1.0","mocha":"^3.2.0"},"gitHead":"034b420ae127d36c1534d839e8e0af8d2f9d2db7","_id":"node-rest-client-promise@3.1.0","_shasum":"c683ee0a441a543d24bce80dc46e725f2512e2ff","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"dodevops","email":"automation@kps.com"},"dist":{"shasum":"c683ee0a441a543d24bce80dc46e725f2512e2ff","tarball":"https://registry.npmjs.org/node-rest-client-promise/-/node-rest-client-promise-3.1.0.tgz","fileCount":19,"unpackedSize":33415,"integrity":"sha512-euLWtB7Kx+6G5+Uy8sdU4JL/KjWgAVwrwqlVhhyf9x9AFoKPKrt8uDJT5ok6LyWRXjM6vOIU2hVtaKww9FMaHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT3/xTnb0gxLE7SbBH+EL85/kMRlOlyewoLA4hq+QR+gIgLQLjwdMOan2cR7f5vSN5K1UaIP1uWvwpiIEUASVI4g0="}]},"maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-rest-client-promise_3.1.0_1519030991705_0.511848091540618"},"_hasShrinkwrap":false},"3.1.1":{"name":"node-rest-client-promise","version":"3.1.1","description":"node-rest-client, but with promises","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["rest","node-rest-client","promises"],"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"license":"MIT","bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","dependencies":{"bluebird":"^3.4.7","node-rest-client":"^3.1.0"},"devDependencies":{"chai":"^3.5.0","grunt":"^1.0.1","grunt-mocha-test":"^0.13.2","gruntify-eslint":"^3.1.0","mocha":"^3.2.0"},"gitHead":"25ff566f92bc3162e7c005947a1bbc8963df7ddc","_id":"node-rest-client-promise@3.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"dodevops","email":"automation@kps.com"},"dist":{"integrity":"sha512-dLDWM8wvjZfALoNY5SYR4ZtOh8YJm/tRjGC8t6S46GxU+yqUJaYFOUjySd3LyPg/wUlqehfk4X2Ro/b277iI0w==","shasum":"4c6f1af024df3af6a1e34c148f7d487f13e0b38c","tarball":"https://registry.npmjs.org/node-rest-client-promise/-/node-rest-client-promise-3.1.1.tgz","fileCount":18,"unpackedSize":31928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUccACRA9TVsSAnZWagAAIW4P/i2nKszz1w2dYvuVU5vE\nHJwKAa03Qhc9biEyfW227RXMrZDmh0FM01P1wixtc23tedZCdar2hPd8Jpot\nEPyWqsmkSsZWhFnKBxoOP82adpdt8g+N65Fsm74jPS0xt3OftBaFCPHdfVBK\novrEw8zAQhTCSaUPmZchvZENqSdu1jRT5Hm8PMuaKl14+zJxxtAYadDKnoZR\nYGBq2RF4cpKoBPmpH8vMBkOIv5AttqQ0jG7QSiY8ktyPdUSY5oslR6LGKVhC\nJ+drr8Q53MG4W+5rt1JCyLKiweDmTbwQDpj9Ov498soZQz9UQK4OsIb2dj2O\nw5FAt0pDunbPRjsLyk9HTyCQ0j53XxfHRZf1tfCNj46MIbacxFcx2osWcxH/\nSB3GdCwmjDQPZowzhtQsFCjUmu+1oAI6fFGozGHIyvoTgM9Wndkkes8SPxDH\nhsPovRYq/j58MAbGPN4WrjMGDJKLLPMGiCIN56BthNowvu2nEkM3vNq1lB/p\nW5DPIHC/8RRrz4OFqwbL7jUG3STC/2WA+jzpo8p/IBhsqohkXwjsUokNs9lg\n/R5GufhW8jqCQO/7ieIMzs+SyegaTpq2IgHyohc3FckY/22bwU7vo15awnSl\nRlxrEJtEz7Qe0cROBqEl5SQ5lcFozKc5blWztar60t9AgGK4tKeW/qrJE1l6\nW5xj\r\n=ci99\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSMdItap+o8vNP4VJtHCYbBJKmmEmCJK+p9oaN2dYTFgIhAMoCcBc0YmLFZ0HZcmGiJTEZGp9b/RKBbF6LmOMlxVsv"}]},"maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-rest-client-promise_3.1.1_1532086016316_0.22471959452683543"},"_hasShrinkwrap":false}},"readme":"# node-rest-client-promise\n\n[![Travis](https://img.shields.io/travis/dodevops/node-rest-client-promise.svg)](https://travis-ci.org/dodevops/node-rest-client-promise)\n\nnode-rest-client, but with promises\n\n## Introduction\n\nI found this question and answer on StackOverflow about promisifying\nthe node-rest-client module:\n\nhttp://stackoverflow.com/questions/30112657/how-to-use-bluebird-to-promisify-node-rest-client\n\nHowever, it seems the original author didn't share a node module\nfor this, so I did that. Additionally, I had to fix a few small things\nand document it.\n\nThis module provides a promisifed version of the\n[node-rest-client](https://www.npmjs.com/package/node-rest-client).\n\n## Usage\n\nThis module provides this small function:\n  * client(options): Call `new Client(options)`, promisify and return it\n\nThe promisified client methods will have a \"Promise\" suffix:\n\n```javascript\nvar client = require('node-rest-client-promise').Client(options);\n\nclient.getPromise(url).catch(...).then(...)\n```\n\nPlease note, that the resolved callback of the Promise will be called\nwith one argument to comply with Promise style. This argument will\nbe an object with the keys 'data' and 'response' reflecting the original\narguments of e.g. `client.get()`.\n\nFor details about node-rest-client, please see the\n[original documentation](https://www.npmjs.com/package/node-rest-client)\n\n## Usage of registerMethod\n\nNode Rest Client's method \"registerMethod\" is available as registerMethodPromise from Version 3.1.0 on.\n","maintainers":[{"name":"dodevops","email":"automation@kps.com"}],"time":{"modified":"2022-06-21T21:03:57.790Z","created":"2017-02-09T15:58:34.423Z","1.0.0":"2017-02-09T15:58:34.423Z","1.0.1":"2017-02-10T09:56:35.574Z","1.0.2":"2017-03-06T09:34:28.533Z","2.0.0":"2017-03-06T09:42:08.354Z","3.0.0":"2017-08-28T08:02:44.826Z","3.1.0":"2018-02-19T09:03:11.824Z","3.1.1":"2018-07-20T11:26:56.441Z"},"homepage":"https://github.com/dodevops/node-rest-client-promise#readme","keywords":["rest","node-rest-client","promises"],"repository":{"type":"git","url":"git+https://github.com/dodevops/node-rest-client-promise.git"},"author":{"name":"Dennis Ploeger","email":"dennis.ploeger@kps.com"},"bugs":{"url":"https://github.com/dodevops/node-rest-client-promise/issues"},"license":"MIT","readmeFilename":"README.md","users":{"joe.li":true}}