{"id":19324631,"url":"https://github.com/soarez/stack-overflow-rss","last_synced_at":"2025-04-22T19:32:48.704Z","repository":{"id":4140847,"uuid":"5253838","full_name":"soarez/stack-overflow-rss","owner":"soarez","description":"Stack Overflow questions feed consumer.","archived":false,"fork":false,"pushed_at":"2014-02-20T22:21:37.000Z","size":175,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T22:26:21.273Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soarez.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":"2012-08-01T01:52:05.000Z","updated_at":"2024-02-01T17:23:43.000Z","dependencies_parsed_at":"2022-07-20T07:16:58.479Z","dependency_job_id":null,"html_url":"https://github.com/soarez/stack-overflow-rss","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/soarez%2Fstack-overflow-rss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarez%2Fstack-overflow-rss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarez%2Fstack-overflow-rss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soarez%2Fstack-overflow-rss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soarez","download_url":"https://codeload.github.com/soarez/stack-overflow-rss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249043219,"owners_count":21203434,"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-10T02:06:07.285Z","updated_at":"2025-04-22T19:32:48.426Z","avatar_url":"https://github.com/soarez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Stack Overflow RSS\n\n### Install\n\n    npm install stack-overflow-rss\n\n### Use\n\n```javascript\nvar stackOverflowRss = require('stack-overflow-rss');\n\n// get the latest javascript questions\nvar consumer = stackOverflowRss({ tag: 'javascript'});\nconsumer.on('update', function(questions) {\n  console.dir(questions);\n});\nconsumer.update();\n\n// poll the most voted json and node.js questions feed\nvar anotherConsumer = stackOverflowRss({ tags: ['json', 'node.js'], sort: 'votes'});\nanotherConsumer.on('new', function(newQuestions) {\n  console.dir(newQuestions);\n});\n\n```\n\nRequiring 'stack-overflow-rss' returns a function used to consume question feeds. The following options are allowed:\n\n* `tag` or `tags` - The question tags.\n* `sort` - Default is `'newest'`. Can also be `'unanswered'`, `'active'`, `'votes'` or `'faq'`.\n* `pollInterval` - Default is `1000 * 60 * 2` (2 minutes).\n* `lazy` - Defer polling until the first subscription to `'new'`. Default is `true`. You can use `consumer.update()`to trigger a single update.\n\nUpon registering, an [EventEmitter](http://nodejs.org/api/events.html) is returned. The events to mind are:\n\n* `'update'` - triggered every time the questions are fetched.\n* `'new'`- triggered only when new questions exist. At leat two updates must be done to trigger this event.\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoarez%2Fstack-overflow-rss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoarez%2Fstack-overflow-rss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoarez%2Fstack-overflow-rss/lists"}