UNPKG

eco-counter-organisations

Version:
54 lines (39 loc) 1.73 kB
# eco-counter-organisations **A list of [Eco Counter](http://www.eco-compteur.com/en/) organisation IDs.** [![npm version](https://img.shields.io/npm/v/eco-counter-organisations.svg)](https://www.npmjs.com/package/eco-counter-organisations) [![build status](https://img.shields.io/travis/derhuerst/eco-counter-organisations.svg)](https://travis-ci.org/derhuerst/eco-counter-organisations) ![ISC-licensed](https://img.shields.io/github/license/derhuerst/eco-counter-organisations.svg) [![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst) ## Installing ```shell npm install eco-counter-organisations ``` ## Usage The npm package contains a list of organisations, each with an ID and a name. An organisation is a set of counters. Using [`eco-counter-client`](https://github.com/derhuerst/eco-counter-client), you can get all counters in these organisations. ```js const orgs = require('eco-counter-organisations') console.log(orgs) ``` ```js [ {id: 26, name: 'Lahti'}, // … {id: 89, name: 'City of Austin'}, // … {id: 744, name: 'Demo public webpage for discussion'}, // … {id: 3655, name: 'Lillehammer Kommune'}, // … {id: 4054, name: 'Oslo Public'}, // … {id: 4468, name: 'Downtown Halifax Public Page'}, // … {id: 3902, name: 'Grand Lyon '}, // … {id: 5447, name: 'Beijing University '}, // … {id: 5737, name: 'Portal de Datos de Ciclovías'} ] ``` ## Contributing If you have a question or have difficulties using `eco-counter-organisations`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/eco-counter-organisations/issues).