circulus-berkel
v1.1.1
Published
![NPM Version](https://img.shields.io/npm/v/circulus-berkel)
Downloads
2
Readme
Circulus Berkel API Client
This Node.js module is a wrapper around the https://www.circulus.nl website, and can retrieve a JSON and iCal feed when providing a Zipcode + Number.
Installation
$ npm i circulus-berkel
Usage
As Webserver
$ circulus-berkel
Server listening on http://0.0.0.0:3000
GET http://localhost:3000/?zipCode=7411KT&number=1&format=ical
GET http://localhost:3000/?zipCode=7411KT&number=1&format=json
As Dependency
import CirculusBerkel from 'circulus-berkel';
const circulusBerkel = new CirculusBerkel({
zipCode: '7411KT',
number: '1',
});
const iCalFeed = await circulusBerkel.getIcalFeed();
console.log(iCalFeed);
const jsonFeed = await circulusBerkel.getJsonFeed();
console.log(jsonFeed);