Node.js lib for the Numbeo API
npm i --save numbeo-api
Require the library and initialize it with your account key:
const Numbeo = require('numbeo-api')
api = new Numbeo({ key: 'your-key' })
api.getCities()
.then(({cities}) => {
console.log(cities)
})
.catch(console.error)
In order to run the tests, the integration tests require to create a secrets.js
file
from the provided example.secrets.js
example, and fill it in with a valid access key.
Then just mocha
.
MIT © Sadoht Gomez Fernandez