Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 493 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 493 Bytes

Weather Forecast Library

A Node.js library to download and process weather forecast data from an FTP server.

Installation

npm install weather-forecaster

Usage

const { getForecast, getPlaceList } = require('weather-forecaster');

const filename = "IDN11060.xml";
const placeName = "The Entrance";

getForecast(filename, placeName, true).then(data => {
    console.log(data);
});

getPlaceList(filename, true).then(data => {
    console.log(data);
});