{"id":22202908,"url":"https://github.com/french-exception/node-chained-promise-event-emitter-lib","last_synced_at":"2025-03-25T01:47:35.455Z","repository":{"id":138718306,"uuid":"225337895","full_name":"French-Exception/node-chained-promise-event-emitter-lib","owner":"French-Exception","description":"Small contract which helps chains promises","archived":false,"fork":false,"pushed_at":"2019-12-17T13:42:11.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-04-25T18:41:42.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/French-Exception.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,"governance":null}},"created_at":"2019-12-02T09:38:13.000Z","updated_at":"2020-11-04T23:08:45.000Z","dependencies_parsed_at":"2023-04-03T17:47:33.370Z","dependency_job_id":null,"html_url":"https://github.com/French-Exception/node-chained-promise-event-emitter-lib","commit_stats":null,"previous_names":["french-exception/npm-chained-promise-event-emitter-lib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/French-Exception%2Fnode-chained-promise-event-emitter-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/French-Exception%2Fnode-chained-promise-event-emitter-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/French-Exception%2Fnode-chained-promise-event-emitter-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/French-Exception%2Fnode-chained-promise-event-emitter-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/French-Exception","download_url":"https://codeload.github.com/French-Exception/node-chained-promise-event-emitter-lib/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383120,"owners_count":20606265,"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-12-02T16:38:51.302Z","updated_at":"2025-03-25T01:47:35.435Z","avatar_url":"https://github.com/French-Exception.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installation\n\n```bash\nnpm install --save @frenchex/chained-promise-event-emitter-lib\n```\n\n# Information\n\nSmall contract which helps developers chain Promises with logging and event-emission.\n\n# Usage example\n\n```typescript\nimport * as log4j from '@log4js-node/log4js-api';\nimport {ChainedPromiseEventEmitter} from \"@frenchex/chained-promise-event-emitter-lib\";\n\n$logger = log4js.getLogger('my-app-main-promise');\n$cP = new ChainedPromiseEventEmitter($logger);\n\n$cP\n.chain('init.config.init', initConfigInit /** returns a Promise **/)\n.chain('init.config.load', initConfigLoad /** returns a Promise **/)\n.chain('init.rc.load',     initRcLoad     /** returns a Promise **/)\n.run()\n```\n\n# Testing\n\nTesting code is offloaded into another NPM package.\n\n```bash\nmkdir chained-promise-event-emitter-lib-test\ncd chained-promise-event-emitter-lib-test\nnpm init -f\nnpm i --save @frenchex/chained-promise-event-emitter-lib-test\ncd node_modules/@frenchex/chained-promise-event-emitter-lib\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrench-exception%2Fnode-chained-promise-event-emitter-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrench-exception%2Fnode-chained-promise-event-emitter-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrench-exception%2Fnode-chained-promise-event-emitter-lib/lists"}