Socket
Socket
Sign inDemoInstall

rss-parser

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-parser - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

dist/rss-parser.min.js

11

Gruntfile.js

@@ -14,5 +14,14 @@ module.exports = function (grunt) {

}
}
},
uglify: {
dist: {
files: {
'./dist/rss-parser.min.js': ['./dist/rss-parser.js']
}
}
},
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('build', ['browserify', 'uglify:dist']);
}

5

package.json
{
"name": "rss-parser",
"version": "2.6.0",
"version": "2.6.1",
"main": "index.js",

@@ -13,3 +13,4 @@ "scripts": {

"grunt": "^0.4.5",
"grunt-browserify": "^4.0.1"
"grunt-browserify": "^4.0.1",
"grunt-contrib-uglify": "^2.2.0"
},

@@ -16,0 +17,0 @@ "dependencies": {

@@ -16,3 +16,6 @@ # rss-parser

## Usage
rss-parser exposes `parseURL()`, `parseString()`, and `parseFile()` functions.
You can parse RSS from a URL, local file (NodeJS only), or a string.
* `parseString(xml, callback)`
* `parseFile(filename, callback)`
* `parseURL(url, [options,] callback)`

@@ -35,3 +38,3 @@ Check out the output format in [test/output/reddit.json](test/output/reddit.json)

```html
<script src="/bower_components/rss-parser/dist/rss-parser.js"></script>
<script src="/bower_components/rss-parser/dist/rss-parser.min.js"></script>
<script>

@@ -47,2 +50,12 @@ RSSParser.parseURL('https://www.reddit.com/.rss', function(err, parsed) {

### Redirects
By default, `parseURL` will follow up to one redirect. You can change this
with `options.maxRedirects`.
```js
parser.parseURL('https://reddit.com/.rss', {maxRedirects: 3}, function(err, parsed) {
console.log(parsed.feed.title);
});
```
## Contributing

@@ -63,5 +76,5 @@

```bash
grunt browserify
npm version minor # or major/patch
grunt build
git commit -a -m "browserify"
npm version minor # or major/patch
npm publish

@@ -68,0 +81,0 @@ git push --follow-tags

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc