Skip to content

Instantly share code, notes, and snippets.

@victorkurauchi
Created December 29, 2018 03:09
Show Gist options
  • Save victorkurauchi/4d08091de420122c74e832f1afc79b62 to your computer and use it in GitHub Desktop.
Save victorkurauchi/4d08091de420122c74e832f1afc79b62 to your computer and use it in GitHub Desktop.
weather-consumer.js
const Weather = require('./weather');
const weather = new Weather();
weather.getWeatherByCity('sydney').then(result => {
console.log(result);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment