Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
RSS based, feed generator for Yandex turbo.
WARNING! Work In Progress
var TR = require('turbo-rss');
var feed = new TS(feedOptions);
feedOptions
title
string Title of your site or feeddescription
optional string A short description of the feed.author
optional string If included it is the name of the item's creator.link
url string Url to the site that the feed is for.pubDate
optional Date object or date string The publication date for content in the feedAn item can be used for a blog entry, project update, log entry, etc. Your RSS feed can have any number of items. Most feeds use 20 or fewer items.
feed.item(itemOptions);
title
string Title of this particular item.image_url
url string Link to header imageurl
url string Url to the item. This could be a blog entry.author
optional string If included it is the name of the item's creator.
If not provided the item author will be the same as the feed author. This is typical
except on multi-author blogs.date
string The date and time of when the item was created. Feed
readers use this to determine the sort order. Some readers will also use it to determinecontent
string Contentvar xml = feed.xml();
This returns the XML as a string.
maybe later...
indent
optional boolean or string What to use as a tab. Defaults to no tabs (compressed). For example you can use'\t'
for tab character, or' '
for two-space tabs. If you set it totrue
it will use four spaces.
var RSS = require('rss');
/* lets create feed */
var feed = new RSS({
title: 'title',
description: 'description',
link: 'http://example.com', // site url
author: 'LightAir',
pubDate: 'May 20, 2012 04:00:00 GMT'
});
/* loop over data and add to feed */
feed.item({
title: 'item title',
image_url: 'http://example.com/example.png',
url: 'http://example.com/article4?this&that', // link to the item
author: 'LightAir', // optional - defaults to feed author property
date: 'May 27, 2012',
content: '<p>hello</p>'
});
// cache the xml to send to clients
var xml = feed.xml();
Contributions to the project are welcome. Feel free to fork and improve. I do my best accept pull requests in a timely manor, especially when tests and updated docs are included.
Tests included use Mocha. Use npm test
to run the tests.
$ npm test
FAQs
RSS based, feed generator for Yandex turbo
The npm package turbo-rss receives a total of 169 weekly downloads. As such, turbo-rss popularity was classified as not popular.
We found that turbo-rss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.