{"id":15952486,"url":"https://github.com/magicdawn/promise.obj","last_synced_at":"2025-07-02T00:01:52.509Z","repository":{"id":57331548,"uuid":"58730940","full_name":"magicdawn/promise.obj","owner":"magicdawn","description":"promise.obj / promise.props","archived":false,"fork":false,"pushed_at":"2023-09-26T14:49:31.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T03:35:34.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/magicdawn.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-13T10:51:33.000Z","updated_at":"2023-09-26T14:36:37.000Z","dependencies_parsed_at":"2024-06-21T04:18:33.164Z","dependency_job_id":"170cd5de-f137-4631-9440-4b246ca78f2b","html_url":"https://github.com/magicdawn/promise.obj","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"571856157302360f8dfa6aa5312819f2d7a4b572"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/magicdawn/promise.obj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fpromise.obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fpromise.obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fpromise.obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fpromise.obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicdawn","download_url":"https://codeload.github.com/magicdawn/promise.obj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fpromise.obj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263052428,"owners_count":23406103,"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-10-07T13:08:48.444Z","updated_at":"2025-07-02T00:01:51.580Z","avatar_url":"https://github.com/magicdawn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- AUTO_GENERATED_UNTOUCHED_FLAG --\u003e\n\n# promise.obj\n\n\u003e promise.obj / promise.props etc\n\n[![Build Status](https://img.shields.io/travis/magicdawn/promise.obj.svg?style=flat-square)](https://travis-ci.org/magicdawn/promise.obj)\n[![Coverage Status](https://img.shields.io/codecov/c/github/magicdawn/promise.obj.svg?style=flat-square)](https://codecov.io/gh/magicdawn/promise.obj)\n[![npm version](https://img.shields.io/npm/v/promise.obj.svg?style=flat-square)](https://www.npmjs.com/package/promise.obj)\n[![npm downloads](https://img.shields.io/npm/dm/promise.obj.svg?style=flat-square)](https://www.npmjs.com/package/promise.obj)\n[![npm license](https://img.shields.io/npm/l/promise.obj.svg?style=flat-square)](http://magicdawn.mit-license.org)\n\n## Install\n\n```sh\n$ npm i -S promise.obj\n```\n\n## Note\n\nthis is target ES5 environment\n\n## API\n\n```js\nconst pobj = require('promise.obj')\n```\n\n## Example\n\n```js\nconst pobj = require('promise.obj')\n\nconst p = pobj({\n  x: Promise.resolve('x'),\n  y: Promise.resolve('y'),\n  foo: 'foo',\n  bar: 3,\n  abc: null,\n})\n\np.then(function(o) {\n  o.x // 'x'\n  o.y // 'y'\n  o.foo // 'foo'\n  o.bar // 3\n  o.abc // null\n})\n```\n\n## See Also\n\n- [promise.timeout](https://github.com/magicdawn/promise.timeout)\n- [promise.retry](https://github.com/magicdawn/promise.retry)\n- [promise.map](https://github.com/magicdawn/promise.map)\n- [promise.ify](https://github.com/magicdawn/promise.ify)\n- [promise.cb](https://github.com/magicdawn/promise.cb)\n- [promise.obj](https://github.com/magicdawn/promise.obj)\n- [promise.sleep](https://github.com/magicdawn/promise.sleep)\n\n## Changelog\n\n[CHANGELOG.md](CHANGELOG.md)\n\n## License\n\nthe MIT License http://magicdawn.mit-license.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fpromise.obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicdawn%2Fpromise.obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fpromise.obj/lists"}