{"id":19605145,"url":"https://github.com/a7ul/rss-parser-browser","last_synced_at":"2025-06-30T13:34:10.420Z","repository":{"id":75754763,"uuid":"96307716","full_name":"a7ul/rss-parser-browser","owner":"a7ul","description":"A simple, light-weight RSS parser for browser. Parse strings, URLs and get a JS object back","archived":false,"fork":false,"pushed_at":"2017-07-05T10:41:06.000Z","size":1242,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T02:22:18.480Z","etag":null,"topics":["browser","npm","openlibrary","rss","rss-parser","rss-reader"],"latest_commit_sha":null,"homepage":"","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/a7ul.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-05T10:31:11.000Z","updated_at":"2025-04-02T16:48:49.000Z","dependencies_parsed_at":"2023-06-07T14:30:28.846Z","dependency_job_id":null,"html_url":"https://github.com/a7ul/rss-parser-browser","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/a7ul%2Frss-parser-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Frss-parser-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Frss-parser-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Frss-parser-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a7ul","download_url":"https://codeload.github.com/a7ul/rss-parser-browser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251196145,"owners_count":21550911,"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":["browser","npm","openlibrary","rss","rss-parser","rss-reader"],"created_at":"2024-11-11T09:41:22.410Z","updated_at":"2025-04-27T19:32:46.341Z","avatar_url":"https://github.com/a7ul.png","language":"JavaScript","readme":"# rss-parser-browser\n\n[![Build Status](https://travis-ci.org/master-atul/rss-parser-browser.svg?branch=master)](https://travis-ci.org/master-atul/rss-parser-browser)\n\nThis is a direct clone from https://github.com/bobby-brennan/rss-parser\n\nI have removed the node dependencies so that it works with webpack in browser.\n\nAll credits should go to bobby-brennan.\n\n## Installation\nYou can install via npm:\n```bash\nnpm install --save rss-parser-browser\n# or\nyarn add rss-parser-browser\n```\n\n## Usage\nYou can parse RSS from a URL or a string.\n* `parseString(xml, [options,],  callback)`\n\n* `parseURL(url, [options,] callback)`\n\n\n## Output\nCheck out the full output format in [test/output/reddit.json](test/output/reddit.json)\n\n##### Notes:\n* The `dc:` prefix will be removed from all fields\n* Both `dc:date` and `pubDate` will be available in ISO 8601 format as `isoDate`\n* If `author` is specified, but not `dc:creator`, `creator` will be set to `author` ([see article](http://www.lowter.com/blogs/2008/2/9/rss-dccreator-author))\n\n### Usage\n```js\nvar parser = require('rss-parser-browser');\n\nparser.parseURL('https://www.reddit.com/.rss', function(err, parsed) {\n  console.log(parsed.feed.title);\n  parsed.feed.entries.forEach(function(entry) {\n    console.log(entry.title + ':' + entry.link);\n  })\n})\n```\n\n### Redirects\nBy default, `parseURL` will follow up to one redirect. You can change this\nwith `options.maxRedirects`.\n\n```js\nparser.parseURL('https://reddit.com/.rss', {maxRedirects: 3}, function(err, parsed) {\n  console.log(parsed.feed.title);\n});\n```\n\n### Custom Fields\nIf your RSS feed contains fields that aren't currently returned, you can access them using the `customFields` option.\n\n```js\nvar options = {\n  customFields: {\n    feed: ['otherTitle', 'extendedDescription'],\n    item: ['coAuthor','subtitle'],\n  }\n}\nparser.parseURL('https://www.reddit.com/.rss', options, function(err, parsed) {\n  console.log(parsed.feed.extendedDescription);\n\n  parsed.feed.entries.forEach(function(entry) {\n    console.log(entry.coAuthor + ':' + entry.subtitle);\n  })\n})\n```\n\nTo rename fields, you can pass in an array with two items, in the format `[fromField, toField]`:\n\n```js\nvar options = {\n  customFields: {\n    item: [\n      ['dc:coAuthor', 'coAuthor'],\n    ]\n  }\n}\n```\n\n## Contributing\nContributions welcome!\n\n### Running Tests\nThe tests run the RSS parser for several sample RSS feeds in `test/input` and outputs the resulting JSON into `test/output`. If there are any changes to the output files the tests will fail.\n\nTo check if your changes affect the output of any test cases, run\n\n`npm test`\n\nTo update the output files with your changes, run\n\n`WRITE_GOLDEN=true npm test`\n\n### Publishing Releases\n```bash\n# change version in package.json\ngrunt build\ngit commit -a -m \"vX.X.X\"\ngit tag vX.X.X\nnpm publish\ngit push --follow-tags\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa7ul%2Frss-parser-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa7ul%2Frss-parser-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa7ul%2Frss-parser-browser/lists"}