Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feed

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feed - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

lib/feed.js

2

examples/sample.js

@@ -1,2 +0,2 @@

import Feed from '../lib/feed2'
const Feed = require('../lib/feed')

@@ -3,0 +3,0 @@ var feed = new Feed({

{
"name": "feed",
"version": "1.0.0",
"version": "1.0.1",
"description": "Feed is a RSS and Atom feed generator for Node.js, making content syndication simple and intuitive!",

@@ -16,5 +16,4 @@ "homepage": "http://projets.jpmonette.net/en/feed",

"scripts": {
"build": "babel -d lib/ src/ --ignore **/*.spec.js -s",
"prebuild": "rm -rf lib/ && mkdir lib",
"prepublish": "npm run prebuild",
"build": "rm -rf lib/ && mkdir lib && babel -d lib/ src/ --ignore **/*.spec.js -s",
"prepublish": "npm run build",
"test": "export NODE_ENV=test && jest",

@@ -21,0 +20,0 @@ "test-travis": "export NODE_ENV=test && jest"

@@ -25,3 +25,3 @@ # Feed for Node.js

```js
var Feed = require('feed');
const Feed = require('feed')
```

@@ -32,3 +32,3 @@

```js
var feed = new Feed({
let feed = new Feed({
title: 'Feed Title',

@@ -47,3 +47,3 @@ description: 'This is my personnal feed!',

}
});
})
```

@@ -54,8 +54,8 @@

```js
for (var key in posts) {
posts.forEach(post => {
feed.addItem({
title: posts[key].title,
id: posts[key].url,
link: posts[key].url,
description: posts[key].description,
title: post.title,
id: post.url,
link: post.url,
description: post.description,
author: [{

@@ -79,6 +79,6 @@ name: 'Jane Doe',

}],
date: posts[key].date,
image: posts[key].image
});
}
date: post.date,
image: post.image
})
})
```

@@ -89,3 +89,3 @@

```js
feed.addCategory('Technologie');
feed.addCategory('Technologie')
```

@@ -100,3 +100,3 @@

link: 'https://example.com/johancruyff'
});
})
```

@@ -107,3 +107,3 @@

```js
feed.rss2();
feed.rss2()
```

@@ -114,3 +114,3 @@

```js
feed.atom1();
feed.atom1()
```

@@ -117,0 +117,0 @@

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