Socket
Socket
Sign inDemoInstall

numbeo-api

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    numbeo-api

Node.js implementation for the Numbeo API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
402 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 11 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc