An open API service indexing awesome lists of open source software.

https://github.com/stadgent/npm_package_opening-hours-widget

NPM package for openinghours API
https://github.com/stadgent/npm_package_opening-hours-widget

d09check22 javascript web

Last synced: about 1 year ago
JSON representation

NPM package for openinghours API

Awesome Lists containing this project

README

          

# Opening Hours Widget

This library serves as a wrapper for the
[openingsuren.gent.be](https://openingsuren.gent.be) API.

## Installation

Install the dependencies:

```bash
npm install @digipolis-gent/opening-hours-widget
```

## Usage

### CommonJS

```javascript
const OpeningHoursWidget = require('@digipolis-gent/opening-hours-widget').default;

let ohw = new OpeningHoursWidget(options);
```

### ES Imports

```javascript
import OpeningHoursWidget from '@digipolis-gent/opening-hours-widget';

let ohw = new OpeningHoursWidget(options);
```

### Browser

**HTML**:

```html

```

**JS**:

```js
let ohw = new OpeningHoursWidget(options);
```

## Development

### Setup

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:

```bash
$ git clone git@github.com:StadGent/npm_package_opening-hours-widget.git
$ cd npm_package_opening-hours-widget
$ npm install
```

### Watch

This will run tests on files every time a change is saved.

```shell
$ npm start
```

### Test

We use [Jest](https://jestjs.io/) for testing.

```shell
$ npm test
```

will run all tests.

## Built With

- [EcmaScript 2017](https://www.ecma-international.org/ecma-262/8.0/index.html)
: The programming language used
- [Babel](https://babeljs.io/) : JavaScript Transpiler
- [NPM](https://www.npmjs.com/) : Dependency Management

## Contributing

Thanks for your interest in contributing! [Get started here](.github/CONTRIBUTING.md).

## Authors

- Helena Standaert - *Initial work* - [GitHub](https://github.com/hstandaert)
- Bart Delrue - *Contribution* - [GitHub](https://github.com/delrueba)