{"id":13415124,"url":"https://github.com/Andarist/callbag-default-if-empty","last_synced_at":"2025-03-14T22:32:42.059Z","repository":{"id":57193058,"uuid":"141733984","full_name":"Andarist/callbag-default-if-empty","owner":"Andarist","description":"👜 Callbag operator which emits a given value when source completes without emitting any value.","archived":false,"fork":false,"pushed_at":"2018-10-11T19:53:14.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-20T06:23:11.782Z","etag":null,"topics":["callbag","callbags"],"latest_commit_sha":null,"homepage":"","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/Andarist.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":"2018-07-20T16:22:38.000Z","updated_at":"2019-10-02T14:38:22.000Z","dependencies_parsed_at":"2022-09-01T06:01:37.797Z","dependency_job_id":null,"html_url":"https://github.com/Andarist/callbag-default-if-empty","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andarist%2Fcallbag-default-if-empty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andarist%2Fcallbag-default-if-empty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andarist%2Fcallbag-default-if-empty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Andarist%2Fcallbag-default-if-empty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Andarist","download_url":"https://codeload.github.com/Andarist/callbag-default-if-empty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221390589,"owners_count":16811249,"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":["callbag","callbags"],"created_at":"2024-07-30T21:00:43.698Z","updated_at":"2024-10-26T08:31:08.164Z","avatar_url":"https://github.com/Andarist.png","language":"JavaScript","funding_links":[],"categories":["Table Contents"],"sub_categories":["Combination operators"],"readme":"# callbag-default-if-empty\n\nCallbag operator which emits a given value when source completes without emitting any value.\n\n## Example\n\n```js\nimport defaultIfEmpty from 'callbag-default-if-empty'\nimport forEach from 'callbag-for-each'\nimport fromEvent from 'callbag-from-event'\nimport interval from 'callbag-interval'\nimport pipe from 'callbag-pipe'\nimport takeUntil from 'callbag-take-until'\n\npipe(\n  fromEvent(document, 'click'),\n  takeUntil(interval(5000)),\n  defaultIfEmpty('no clicks'),\n  forEach(eventOrDefault =\u003e {\n    console.log(eventOrDefault)\n  }),\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndarist%2Fcallbag-default-if-empty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAndarist%2Fcallbag-default-if-empty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAndarist%2Fcallbag-default-if-empty/lists"}