{"id":18696490,"url":"https://github.com/hermanya/listenable-counter","last_synced_at":"2025-11-08T15:30:30.564Z","repository":{"id":76897256,"uuid":"64552944","full_name":"Hermanya/listenable-counter","owner":"Hermanya","description":null,"archived":false,"fork":false,"pushed_at":"2016-07-30T21:44:15.000Z","size":637,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"gh-pages","last_synced_at":"2024-12-28T03:42:12.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hermanya.github.io/listenable-counter/","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/Hermanya.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-30T16:18:02.000Z","updated_at":"2016-07-30T16:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea035f3e-2f58-48ce-9614-2a4d8b528952","html_url":"https://github.com/Hermanya/listenable-counter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Flistenable-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Flistenable-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Flistenable-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Flistenable-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/listenable-counter/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558930,"owners_count":19658929,"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-07T11:19:12.408Z","updated_at":"2025-11-08T15:30:30.529Z","avatar_url":"https://github.com/Hermanya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Counter example for [listenable browser](https://github.com/hermanya/listenable-browser)\n----------------------------------------------------------------------------------------\n\nThis repo is basically a clone of [redux counter example](https://github.com/reactjs/redux/tree/master/examples/counter). The only modification I made is I added following code in ./components/Counter.js's `render` method:\n```javascript\nsay(`Counter value is ${value}`).then(() =\u003e listenForUserInput({\n    'increment': onIncrement,\n    'increment if odd': this.incrementIfOdd,\n    'increment asynchronously': this.incrementAsync,\n    'decrement': onDecrement\n}))\n```\n\nI also added a [polyfill](https://hermanya.github.io/listenable-browser/support_for_other_browsers.js) for other than listenable browsers:\n\n```html\n\u003cscript src=\"https://hermanya.github.io/listenable-browser/support_for_other_browsers.js\"\u003e\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Flistenable-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Flistenable-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Flistenable-counter/lists"}