{"id":15414857,"url":"https://github.com/lxsmnsyc/px","last_synced_at":"2025-08-26T11:34:27.326Z","repository":{"id":57144853,"uuid":"173886261","full_name":"lxsmnsyc/Px","owner":"lxsmnsyc","description":"Extension functions for JS Promise","archived":false,"fork":false,"pushed_at":"2019-03-12T03:36:45.000Z","size":522,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T13:39:29.248Z","etag":null,"topics":["defer","deferred","deferred-promise","promise","promise-api","promise-library","promises","promises-aplus"],"latest_commit_sha":null,"homepage":"https://lxsmnsyc.github.io/px/","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/lxsmnsyc.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":"2019-03-05T06:14:46.000Z","updated_at":"2019-03-12T03:36:47.000Z","dependencies_parsed_at":"2022-09-06T08:53:43.095Z","dependency_job_id":null,"html_url":"https://github.com/lxsmnsyc/Px","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lxsmnsyc/Px","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FPx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FPx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FPx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FPx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lxsmnsyc","download_url":"https://codeload.github.com/lxsmnsyc/Px/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lxsmnsyc%2FPx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272214427,"owners_count":24893204,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["defer","deferred","deferred-promise","promise","promise-api","promise-library","promises","promises-aplus"],"created_at":"2024-10-01T17:05:04.208Z","updated_at":"2025-08-26T11:34:27.310Z","avatar_url":"https://github.com/lxsmnsyc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Px\n\nExtension functions for JS Promise\n\n[![https://nodei.co/npm/promise-ex.png?downloads=true\u0026downloadRank=true\u0026stars=true](https://nodei.co/npm/promise-ex.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/promise-ex)\n\n[![JSDeliver Hits](https://data.jsdelivr.com/v1/package/npm/promise-ex/badge)](https://www.jsdelivr.com/package/npm/promise-ex)\n[![HitCount](http://hits.dwyl.io/lxsmnsyc/Px.svg)](http://hits.dwyl.io/lxsmnsyc/Px)\n\n\n| Platform | Build Status |\n| --- | --- |\n| Linux | [![Build Status](https://travis-ci.org/LXSMNSYC/Px.svg?branch=master)](https://travis-ci.org/LXSMNSYC/Px) |\n| Windows | [![Build status](https://ci.appveyor.com/api/projects/status/0sq5gw4s1yo3n1le?svg=true)](https://ci.appveyor.com/project/LXSMNSYC/px) |\n\n[![codecov](https://codecov.io/gh/LXSMNSYC/Px/branch/master/graph/badge.svg)](https://codecov.io/gh/LXSMNSYC/Px)\n\n[![devDependencies Status](https://david-dm.org/lxsmnsyc/px/dev-status.svg)](https://david-dm.org/lxsmnsyc/px?type=dev)\n[![Inline docs](http://inch-ci.org/github/lxsmnsyc/px.svg?branch=master)](http://inch-ci.org/github/lxsmnsyc/px)\n\n## Introduction\n\nPx allows the extension of the native Promise objects by adding additional functions to its prototype.\nPx also introduces two Promise variants:\n\n* DeferredPromise which is a Promise that, unlike a vanilla Promise, does not call the executor passed to its constructor synchronously but calls it whenever a callback is attached to it (so it produces a different Promise objects every call).\n  \n* PublishedPromise, which allows asynchronous fulfillment.\n\n## Install\n\nNPM\n\n```bash\nnpm i promise-ex\n```\n\nthen in NodeJs:\n\n```js\nlet Px = require('promise-ex');\n```\n\nCDN\n\n```html\n\u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/promise-ex@0.3.7/index.min.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n\nWorking example can be found at [RunKit](https://runkit.com/lxsmnsyc/5c7f46ce7310350012d0860c).\n\n## Changelogs\n\n* 0.3.6\n  * Fixed delayedReject only resolving.\n* 0.3.5\n  * AirBnb style\n* 0.3.0\n  * Promise.test\n  * Fix on comments\n  * Fixed DeferredPromise.delay only resolving\n* 0.2.0\n  * Delayed Resolve and Reject\n* 0.1.0\n  * Initial Release\n\n## Build\n\nFirst, run install the dependencies:\n\n```bash\nnpm install\n```\n\nRun the test suite\n\n```bash\nnpm test\n```\n\nYou can also try generating the docs\n\n```bash\nnpm run generate-docs\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2019 Alexis Munsayac\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsmnsyc%2Fpx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flxsmnsyc%2Fpx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flxsmnsyc%2Fpx/lists"}