{"id":18687376,"url":"https://github.com/junosuarez/resolved","last_synced_at":"2025-11-08T02:30:33.014Z","repository":{"id":5944286,"uuid":"7164948","full_name":"junosuarez/resolved","owner":"junosuarez","description":"npm module: a promises/a compliant `when`, but for objects instead of arrays","archived":false,"fork":false,"pushed_at":"2015-04-28T23:22:26.000Z","size":184,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T16:46:21.692Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junosuarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-14T12:15:45.000Z","updated_at":"2015-04-28T23:22:26.000Z","dependencies_parsed_at":"2022-08-29T17:01:19.977Z","dependency_job_id":null,"html_url":"https://github.com/junosuarez/resolved","commit_stats":null,"previous_names":["jden/resolved"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fresolved","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fresolved/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fresolved/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junosuarez%2Fresolved/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junosuarez","download_url":"https://codeload.github.com/junosuarez/resolved/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239545434,"owners_count":19656777,"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-07T10:32:37.868Z","updated_at":"2025-11-08T02:30:32.956Z","avatar_url":"https://github.com/junosuarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resolved\nLike Promise.all but for Objects\n\nIf your friends ask, this is why Promises are cool: they're objects that you can pass around and do things to while you're waiting for their promised values. With `resolved`, you can embed promises in other objects and then get the aggregate resolved value.\n\nThis is similar to the function `when`, which takes an array of promises and returns a promise for an array of all of the resolved values. `resolved` does the same, but for objects instead of arrays.\n\n## installation\n\n```console\n$ npm install resolved\n```\n\n## usage\n```js\nvar resolved = require('resolved')\n\nvar obj = {\n  a: 'a regular value',\n  b: promiseOfTrue,\n  c: [\n    promiseOfFalse,\n    promiseOf1\n  ]\n}\n\nresolved(obj).then(function(resolvedObj) {\n  // resolvedObj =\u003e {\n  //    a: 'a regular value',\n  //    b: true,\n  //    c: [\n  //      promiseOfFalse,\n  //      promiseOf1\n  //    ]\n  //  }\n})\n\nresolved.deep(obj).then(function(resolvedObj) {\n  // resolvedObj =\u003e {\n  //    a: 'a regular value',\n  //    b: true,\n  //    c: [\n  //      false,\n  //      1\n  //    ]\n  //  }\n})\n```\n\n\n## license\nMIT\n(c) 2015 jden - Jason Denizac \u003cjason@denizac.org\u003e - http://jden.mit-license.org/2015","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fresolved","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunosuarez%2Fresolved","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunosuarez%2Fresolved/lists"}