Skip to content
NodeJS library for Apixu Weather API
Branch: master
Clone or download
Latest commit 630c56d Apr 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Add missing params for paid license. Apr 1, 2019
test Add missing params for paid license. Apr 1, 2019
.eslintrc.json Lint. Jan 30, 2019
.gitignore Add tests coverage. Jan 31, 2019
LICENSE Add license. Jan 30, 2019
Makefile Add conditions test. Jan 30, 2019
README.md Add documentation url. Feb 2, 2019
errors.js Add errors. Feb 3, 2019
index.js Lint fix. Apr 10, 2019
package.json Update package version. Apr 10, 2019

README.md

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
You can’t perform that action at this time.