https://github.com/rabinzon/oop-3
https://github.com/rabinzon/oop-3
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rabinzon/oop-3
- Owner: Rabinzon
- Created: 2019-02-16T18:31:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T07:01:26.000Z (almost 7 years ago)
- Last Synced: 2025-01-26T16:44:10.411Z (12 months ago)
- Language: JavaScript
- Size: 91.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## weather
[](https://travis-ci.org/Rabinzon/oop-3)
## CL usage
```sh
$ weather --service
$ weather --service apixu kazan
{
city: 'Kazan',
temp: -1,
text: 'Partly cloudy',
wind: 16.1
}
```
Available sevices: `apixu`, `weatherbit`
## Library usage
```js
import Weather from 'Weather';
const weather = new Weather('apixu');
await weather.getByCityName('London');
```
## Setup
### `keys.json` should include api keys
```json
{
"apixu": "key",
"weatherbit": "key"
}
```
```sh
$ make install
$ make build
$ npm ln
```
## Run tests
```sh
$ make test
```