UNPKG
weather
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
An easy way to fetch the weather.
thattonybo/node-weather
weather
/
examples
/
currentWeather.js
13 lines
(10 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
Weather
=
require
(
'../src/index'
);
const
appID =
''
;
const
appCode =
''
;
const
weather =
new
Weather
({ appID, appCode }); weather.
now
(
'Brisbane, Australia'
).
then
(
(
results
) =>
{
console
.
log
(results); });