first commit
This commit is contained in:
45
build/node_modules/feed/examples/sample.js
generated
vendored
Normal file
45
build/node_modules/feed/examples/sample.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
const Feed = require('../lib/feed')
|
||||
|
||||
var feed = new Feed({
|
||||
title: 'Feed Title',
|
||||
description: 'This is my personnal feed!',
|
||||
id: 'fake',
|
||||
link: 'http://example.com/',
|
||||
image: 'http://example.com/image.png',
|
||||
copyright: 'All rights reserved 2013, John Doe',
|
||||
|
||||
author: {
|
||||
name: 'John Doe',
|
||||
email: 'johndoe@example.com',
|
||||
link: 'https://example.com/johndoe'
|
||||
}
|
||||
});
|
||||
|
||||
feed.addItem({
|
||||
title: 'Title #1',
|
||||
id: 'https://id',
|
||||
link: 'https://url',
|
||||
description: '#1 description',
|
||||
author: [{
|
||||
name: 'Jane Doe',
|
||||
email: 'janedoe@example.com',
|
||||
link: 'https://example.com/janedoe'
|
||||
}, {
|
||||
name: 'Joe Smith',
|
||||
email: 'joesmith@example.com',
|
||||
link: 'https://example.com/joesmith'
|
||||
}],
|
||||
contributor: [{
|
||||
name: 'Shawn Kemp',
|
||||
email: 'shawnkemp@example.com',
|
||||
link: 'https://example.com/shawnkemp'
|
||||
}, {
|
||||
name: 'Reggie Miller',
|
||||
email: 'reggiemiller@example.com',
|
||||
link: 'https://example.com/reggiemiller'
|
||||
}],
|
||||
date: new Date(),
|
||||
image: 'test.png'
|
||||
});
|
||||
|
||||
console.log(feed.atom1())
|
||||
Reference in New Issue
Block a user