![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@iamonuwa/feed-listener
Advanced tools
feed-watcher is a rss watcher based on Nikenozo's rss-watcher but optimized for synchronous data handling and storing of the results from the parse. Also it was rewritted to use promises as on not-event-based requests instead of callbacks for better code quality :)
You can install feed-watcher by using:
npm install feed-watcher
A basic watcher can be created using:
var Watcher = require('feed-watcher'),
feed = 'http://lorem-rss.herokuapp.com/feed?unit=second&interval=5',
interval = 10 // seconds
// if not interval is passed, 60s would be set as default interval.
var watcher = new Watcher(feed, interval)
// Check for new entries every n seconds.
watcher.on('new entries', function (entries) {
entries.forEach(function (entry) {
console.log(entry.title)
})
})
// Start watching the feed.
watcher
.start()
.then(function (entries) {
console.log(entries)
})
.catch(function(error) {
console.error(error)
})
// Stop watching the feed.
watcher.stop()
If you want to change the watcher config after creating it, you should use watcher.config:
watcher.config({ feedUrl: feed, interval: 60 })
Watcher exposes 3 events: 'new entries', 'stop' and 'error'.
// Returns an array of entry objects founded since last check.
watcher.on('new entries', function (entries) {
console.log(entries)
})
// Emitted when watcher.stop() is called,
watcher.on('stop', function () {
console.log('stopped')
})
// Emitted when an error happens while checking feed.
watcher.on('error', function (error) {
console.error(error)
})
Tests can be run using
npm test
Project License can be found here
FAQs
A rss watcher optimized for synchronous data handling
The npm package @iamonuwa/feed-listener receives a total of 0 weekly downloads. As such, @iamonuwa/feed-listener popularity was classified as not popular.
We found that @iamonuwa/feed-listener 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.