UNPKG
theweatherapi
Version:
latest (2.2.2)
2.2.2
2.2.0
2.1.4
2.1.3
2.1.2
2.0.2
2.0.1
2.0.0
1.1.3
1.1.2
1.0.2
1.0.1
1.0.0
0.0.3
0.0.2
0.0.1
An NPM Library used to get weather info
github.com/grook8958/weather
grook8958/weather
theweatherapi
/
src
/
rest
/
api
/
CurrentAPI.js
13 lines
(10 loc)
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
BaseAPI = require(
'./BaseAPI'
);
class
SearchAPI
extends
BaseAPI
{
constructor
() {
super
()
this
.endpoint =
'current'
;
this
.method =
this
.apiTypes.v1[
this
.endpoint]?.method;
this
.params =
this
.apiTypes.v1[
this
.endpoint]?.params; } } module.exports = SearchAPI;