Node.js library for Apixu Weather API
- Node.js and npm (or yarn)
- Git (optional)
Choose the version you want to install from the releases page
or choose master
to install the latest updates.
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
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
git clone https://github.com/apixu/apixu-nodejs --branch vX.X.X --single-branch # or download repository
cd apixu-nodejs
See the examples.
APIXUKEY=yourapikey node examples/<file>.js
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