Skip to content

goferito/numbeo-node-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM downloads per month NPM version NPM license

Node.js Numbeo API

Node.js lib for the Numbeo API

Installation

npm i --save numbeo-api

Usage

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)

Running Tests

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.

License

MIT © Sadoht Gomez Fernandez

About

Node.js implementation for the Numbeo API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published