UNPKG

weathers-watch

Version:

A free and asynchronous weather API wrapper made in javascript.

7 lines (6 loc) 253 B
const util = require('util') const { getWeather } = require('./src/index.js'); (async () => { var weatherResult = await getWeather('london', 'united kingdom'); console.log(util.inspect(weatherResult, false, null, true /* enable colors */)) })()