ncu-weather

Information for National Central University, Taiwan

Usage no npm install needed!

<script type="module">
  import ncuWeather from 'https://cdn.skypack.dev/ncu-weather';
</script>

README

ncu-weather-cli Build Status npm package

A simple CLI for NCU's Information

Requirements

  • Node.js v6 or higher

Global Install

$ npm install ncu-weather -g
$ ncuw
or
$ ncu-weather

Local Install

$ npm install ncu-weather
const ncu = require('ncu-weather')

// get data from http://www.ncu.edu.tw
ncu.weather().then( data => console.log(ncu.convert(data)) ).catch( err => console.log(err) )

// get data from http://pblap.atm.ncu.edu.tw
ncu.weatherAtm().then( data => console.log(ncu.convertAtm(data) ).catch( err => console.log(err) )

// functions
console.log(ncu.time())
console.log(ncu.bonus())

Dependency References

License

MIT