pialechini / shahroodwifi

A command line tool to make login / check credit process much easier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shahroodwifi

A command line tool to make login | check credit process much easier

Installation

$ git clone git@github.com:pialechini/shahroodwifi.git
$ cd shahroodwifi
$ npm install
$ npm run init

Open auth.json and replace sample usernames/passwords with yours. (you can add as many "username": "password" pairs as you want)

if chrome couldn't be downloaded during npm install, use the link below, download and extract it somewhere (It is recommended to be in the app directory). Then in package.json add:

"config": {
  "chromeExecutable": "/absolute/path/to/the/chrome/executable"
}

Chrome For Linux Download Link

Recommended For Linux Users

If you want to make this tool globally available, run npm run install. Then instead of node src/shahroodwifi.js you can use shahroodwifi.

Usage

Login

$ node src/shahroodwifi.js login <username>
# or if is globally installed:
$ shahroodwifi login <username>

The username must be defined in auth.json.

Show credit

$ node src/shahroodwifi.js credit <username>
# or if is globally installed:
$ shahroodwifi credit <username>

The username must be defined in auth.json.

About

A command line tool to make login / check credit process much easier


Languages

Language:JavaScript 97.0%Language:Shell 3.0%