Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 1.46 KB

README.md

File metadata and controls

81 lines (62 loc) · 1.46 KB

Apixu Node.js

Node.js library for Apixu Weather API

Requirements

Install Apixu client

Choose the version you want to install from the releases page or choose master to install the latest updates.

npm

npm install apixu/apixu-nodejs#vX.X.X

or

npm install apixu/apixu-nodejs#master

or without Git

npm install https://github.com/apixu/apixu-nodejs/archive/vX.X.X.tar.gz

npm with package.json file

Add to dependencies section of your package.json file

{
  "name": "app",
  "version": "0.1.0",
  "description": "App using Apixu",
  "dependencies": {
    "apixu": "apixu/apixu-nodejs#vX.X.X"
  }
}

then run

npm install

Manually

git clone https://github.com/apixu/apixu-nodejs --branch vX.X.X --single-branch # or download repository
cd apixu-nodejs

Usage and integration with frameworks

See the examples.

APIXUKEY=yourapikey node examples/<file>.js

Documentation

https://www.apixu.com/doc/

Development

You can use with Docker. See Makefile.

Run tests:

make test NODEVERSION=11 APIXUKEY=yourapikey

Enter environment:

make env NODEVERSION=11 APIXUKEY=yourapikey

Run example file:

make run NODEVERSION=11 APIXUKEY=yourapikey FILE=examples/search.js