{"id":20757600,"url":"https://github.com/dodevops/node-rest-client-promise","last_synced_at":"2025-04-29T23:29:58.253Z","repository":{"id":65411413,"uuid":"81458476","full_name":"dodevops/node-rest-client-promise","owner":"dodevops","description":"node-rest-client, but with promises","archived":false,"fork":false,"pushed_at":"2018-07-20T11:27:45.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-18T14:11:13.758Z","etag":null,"topics":["javascript","node-rest-client","nodejs","promise-support","rest"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-09T14:28:07.000Z","updated_at":"2020-05-15T00:18:27.000Z","dependencies_parsed_at":"2023-01-23T10:54:58.273Z","dependency_job_id":null,"html_url":"https://github.com/dodevops/node-rest-client-promise","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":0.4,"last_synced_commit":"25ff566f92bc3162e7c005947a1bbc8963df7ddc"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fnode-rest-client-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fnode-rest-client-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fnode-rest-client-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fnode-rest-client-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodevops","download_url":"https://codeload.github.com/dodevops/node-rest-client-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599504,"owners_count":21615533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","node-rest-client","nodejs","promise-support","rest"],"created_at":"2024-11-17T09:43:21.375Z","updated_at":"2025-04-29T23:29:58.235Z","avatar_url":"https://github.com/dodevops.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fnode-rest-client-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodevops%2Fnode-rest-client-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fnode-rest-client-promise/lists"}