{"id":20570075,"url":"https://github.com/brechtcs/await-callback","last_synced_at":"2025-03-06T09:43:03.788Z","repository":{"id":57187921,"uuid":"260696637","full_name":"brechtcs/await-callback","owner":"brechtcs","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-13T21:07:30.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T09:46:51.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brechtcs.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":"2020-05-02T13:48:46.000Z","updated_at":"2020-11-13T21:07:32.000Z","dependencies_parsed_at":"2022-08-28T13:00:32.446Z","dependency_job_id":null,"html_url":"https://github.com/brechtcs/await-callback","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechtcs%2Fawait-callback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechtcs%2Fawait-callback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechtcs%2Fawait-callback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brechtcs%2Fawait-callback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brechtcs","download_url":"https://codeload.github.com/brechtcs/await-callback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242186233,"owners_count":20086204,"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":[],"created_at":"2024-11-16T05:11:24.394Z","updated_at":"2025-03-06T09:43:03.743Z","avatar_url":"https://github.com/brechtcs.png","language":"JavaScript","readme":"# await-callback\n\nWrap and await callback code\n\n## Usage\n\n```js\nvar promise = require('await-callback')\nvar fs = require('fs')\n\nasync function main () {\n  var result = await promise(done =\u003e {\n    fs.writeFile('hello', 'world', 'utf8', err =\u003e {\n      if (err) return done(err)\n      fs.readFile('hello', 'utf8', done)\n    })\n  })\n\n  console.log(result) // 'world'\n}\n\nmain()\n```\n\n## License\n\nApache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrechtcs%2Fawait-callback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrechtcs%2Fawait-callback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrechtcs%2Fawait-callback/lists"}