TUNET
TUNET is a nodejs tool to login and logout Tsinghua University Network (tunet).
To use this do as below:
// install from npmnpm install tunet // require tunet packagevar tunet = ; // set login/logout optionsvar options = name: 'user_name' // required, 'user_name' and 'user_name@tsinghua' are for access public internet and tunet, respectively pwd: 'user_password' // required, password for tunet account 'user_name' ip: '192.168.1.1' // optional, the ip you want to authenticate, and default is the client ip // do logintunet;// Login is successful. // do logouttunet;// Logout is successful.