Skip to content

Commit

Permalink
docs(todo): added todo
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoTron committed Nov 9, 2017
1 parent e72cf6c commit 5e420d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ yarn add business-hours.js

To get started, setup a JSON file where you define the business hours.

`0` stands for `Sunday`

`0` stands for `Sunday`<br>
`1` stands for `Monday` and so on.

You can have 1 to N `from/to` pairs per weekday. If on a given day you are closed, instead of a `from/to` pair, just put `closed`.
Expand Down Expand Up @@ -110,7 +109,12 @@ businessHours.init(hoursJson);
```
import hoursJson from "./hours.json";
```
or it could come from any other endpoind, as long as it's JSON.
or it could come from any other endpoint (DB, GraphQL, Firebase...), as long as it's in JSON.

# Example
Find an whole example in React here [here](example/)

# TODOs
* add holidays -> single day, or range
* add always closed on public holidays, country specific
*

0 comments on commit 5e420d4

Please sign in to comment.