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

multiple-url-poller

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiple-url-poller

Polls URLs and notifies upon changes

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

URL Poller

Build Status Code Climate Test Coverage Issue Count

A fully customizable url poller and notifier

Features

  • polls multiple urls
  • customizable poll interval
  • creates a diff between the previous and current version upon changes
  • handles HTTP authentication and any other option from the request library
  • emits changes and notifies using RxJS giving you lots of possibilities to fit your needs

Installation

npm install multiple-url-poller

Example

const Poller = require('multiple-url-poller').Poller;

let interval = 5 * 1000;  // time in ms
let urls = ['https://time.is/'];
let poller = new Poller({ interval, urls });
let diffs$ = poller.getDiffObservable();
let subscription = diffs$
  .map(diffs => diffs.filter(singleDiff => singleDiff.added || singleDiff.removed))
  .subscribe(diffs => console.log('New diff', diffs));

poller.start();

See it running in your browser

Contributing

If you would like to suggest a feature or report a problem please use the Issues tab on GitHub.

All pull requests are welcome! Before creating one, make sure there are no problems by running the following commands:

npm run lint
npm test

Creating unit tests for new features in your pull requests would also be splendid, although it is not required.

Author

The author of this project is Grzegorz Rozdzialik.

FAQs

Package last updated on 02 Feb 2017

Did you know?

Socket

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.

Install

Related posts

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