Information for National Central University, Taiwan
$ cnpm install ncu
A simple CLI for NCU's Information
$ npm install ncu -g
$ ncu
or
$ ncu-weather
$ npm install ncu
const ncu = require('ncu')
// 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())
MIT
Copyright 2013 - present © cnpmjs.org | Home |