2.0.2 • Published 6 years ago

tunet v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

TUNET

TUNET is a nodejs tool to login and logout Tsinghua University Network (tunet).

To use this do as below:

// install from npm
npm install tunet

// require tunet package
var tunet = require('tunet');

// set login/logout options
var 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 login
tunet.login(options.name, options.pwd, options.ip);
// Login is successful.

// do logout
tunet.logout(options.name, options.ip);
// Logout is successful.
2.0.2

6 years ago

2.0.1

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.1.0

8 years ago

1.0.0

8 years ago