Skip to content

apixu/apixu-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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