This library serves as a wrapper for the openingsuren.gent.be API.
Install the dependencies:
npm install @digipolis-gent/opening-hours-widget
const OpeningHoursWidget = require('@digipolis-gent/opening-hours-widget').default;
let ohw = new OpeningHoursWidget(options);
import OpeningHoursWidget from '@digipolis-gent/opening-hours-widget';
let ohw = new OpeningHoursWidget(options);
HTML:
<script src="node_modules/@digipolis-gent/opening-hours-widget/dist/opening-hours-widget.js"></script>
JS:
let ohw = new OpeningHoursWidget(options);
If you'd like to make adjustments to the source code, you can set up this project locally.
To clone the repo and install dependencies:
$ git clone git@github.com:StadGent/npm_package_opening-hours-widget.git
$ cd npm_package_opening-hours-widget
$ npm install
This will run tests on files every time a change is saved.
$ npm start
We use Jest for testing.
$ npm test
will run all tests.
- EcmaScript 2017 : The programming language used
- Babel : JavaScript Transpiler
- NPM : Dependency Management
Thanks for your interest in contributing! Get started here.