{"id":20588451,"url":"https://github.com/znck/promised","last_synced_at":"2025-04-14T21:53:25.172Z","repository":{"id":57170923,"uuid":"132231850","full_name":"znck/promised","owner":"znck","description":"A utility to convert callbacks to promises.","archived":false,"fork":false,"pushed_at":"2020-07-13T22:03:05.000Z","size":85,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T21:53:19.236Z","etag":null,"topics":["callback","promise","promisified","promisify","promisifyall"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/znck.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-05T09:06:13.000Z","updated_at":"2019-08-14T15:23:28.000Z","dependencies_parsed_at":"2022-08-27T12:02:12.633Z","dependency_job_id":null,"html_url":"https://github.com/znck/promised","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fpromised","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fpromised/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fpromised/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znck%2Fpromised/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znck","download_url":"https://codeload.github.com/znck/promised/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968754,"owners_count":21191158,"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":["callback","promise","promisified","promisify","promisifyall"],"created_at":"2024-11-16T07:24:43.518Z","updated_at":"2025-04-14T21:53:25.152Z","avatar_url":"https://github.com/znck.png","language":"TypeScript","readme":"# @znck/promised [![Build Status](https://circleci.com/gh/znck/promised/tree/master.svg?style=shield)](https://circleci.com/gh/znck/promised/) [![Coverage Status](https://coveralls.io/repos/github/znck/promised/badge.svg)](https://coveralls.io/github/znck/promised)\n\nA utility to make any callback based module/object to return promises.\n\n## Installation\n\n``` bash\nnpm add @znck/promised # or `pnpm add @znck/promised` or `yarn add @znck/promised`\n```\n\n## Usage\n\n``` js\nimport promised from '@znck/promised'\nimport * as fs from 'fs'\n\n// ...\nif (await promised(fs).exists('example.txt')) {\n  const contents = await promised(fs).readFile('example.txt')\n  // ...\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznck%2Fpromised","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznck%2Fpromised","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznck%2Fpromised/lists"}