1.0.10 • Published 6 years ago

delfi-newscaster v1.0.10

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

delfi-newscaster

Simple announcer for Estonian news portal delfi.ee. If top headline changes, the user gets an object with relevant details (headline, url, comment count).

Installation

$ npm install delfi-newscaster

Usage example

const delfi = require("delfi-newscaster")
    
delfi(function(err, data) {
console.log(data.headline) // =>  Kohtuotsus võib sundida sadu kliente hanitanud Swedbanki vastutama
})

API

delfi(callback, interval)

callback
Required
Type: function

Callback function which returns either error or data (error-first callback)

interval
Optional
Type: number

Time between requests, in milliseconds. If not provided then default interval is set to 120000 ms (120 seconds)

Licence

MIT

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago