{"id":18485250,"url":"https://github.com/busyorg/busyjs","last_synced_at":"2025-04-08T19:32:20.221Z","repository":{"id":57139774,"uuid":"120810086","full_name":"busyorg/busyjs","owner":"busyorg","description":"Busy.js","archived":false,"fork":false,"pushed_at":"2018-07-04T16:25:09.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-10-07T22:37:01.401Z","etag":null,"topics":["busy","busyjs","ws"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/busyorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-08T19:52:25.000Z","updated_at":"2018-07-04T16:12:08.000Z","dependencies_parsed_at":"2022-09-05T01:11:15.743Z","dependency_job_id":null,"html_url":"https://github.com/busyorg/busyjs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busyorg%2Fbusyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busyorg%2Fbusyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busyorg%2Fbusyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/busyorg%2Fbusyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/busyorg","download_url":"https://codeload.github.com/busyorg/busyjs/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223342771,"owners_count":17129920,"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":["busy","busyjs","ws"],"created_at":"2024-11-06T12:44:39.520Z","updated_at":"2024-11-06T12:44:39.635Z","avatar_url":"https://github.com/busyorg.png","language":"JavaScript","readme":"# Busy.js\n\nA lightweight JavaScript library for Busy\n\n### Install\n```\nnpm install busyjs --save\n```\n\n### Usage\n```js\nvar busy = require('busyjs');\n\n// Init WebSocket client\nvar client = new busy.Client('wss://gtg.steem.house:8090');\n\n// Get accounts\nclient.call('get_accounts', ['fabien'], function(err, result) {\n  console.log(err, result);\n});\n```\n\n### Promises\n\nYou can also use Busy.js with promises by promisifying busy with\n[bluebird](https://github.com/petkaantonov/bluebird) as in:\n\n```js\nvar busy = require('busyjs');\nbluebird.promisifyAll(busy.Client.prototype);\n```\n\nIt'll add a *Async* to all busy functions (e.g. return client.callAsync().then())\n\n```js\n// So instead of writing client.request('get_accounts', ['fabien'], cb); you have to write:\nreturn client.callAsync('get_accounts', ['fabien']).then(function(result) {\n  console.log(result); // =\u003e [{ id: 26921, name: 'fabien' ...]\n});\n```\n\n## License\n\n[MIT](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusyorg%2Fbusyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusyorg%2Fbusyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusyorg%2Fbusyjs/lists"}