A festivals information package.
To install the package, you can use npm:
npm install nicoalz-oss-festivals
-
Get festivals by department:
- function:
getFestivalsByDepartment(department)
- parameter: department (string) - Use first two numbers of ZipCode. eg: '01' for Ain
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
-
Get festivals by month:
- function:
getFestivalsByMonth(month)
- parameter: month (string) - Use two numbers for month. eg: '01' for January
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
-
Get festivals by region:
- function:
getFestivalsByRegion(region)
- parameter: region (string) - Use region name. eg: 'Auvergne-Rhône-Alpes'
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
-
Get festivals by domaine:
- function:
getFestivalsByDomaine(domaine)
- parameter: domaine (string) - Use domaine name. eg: 'Musiques actuelles'
- return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function:
-
Get festivals by fiters:
- function:
getFestivalsByFilters(filters)
- parameter: filters (object) - Use filters object. eg: {region: 'Auvergne-Rhône-Alpes', domaine: 'Musiques actuelles'}
⚠️ Only a wrong value of a correct filter will throw an error - return: array of festivals, docs: https://data.culture.gouv.fr/explore/dataset/panorama-des-festivals/api/
- function: