numbeo-api

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i numbeo-api

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.47 kB

Total Files

7

Last publish

Collaborators

  • goferito