textlogin
v0.0.7 login text ansi
node-textlogin
Collect a username, password, and any other fields you want in style!
var textlogin = require('./index')();
textlogin
.title("Beep Boop Industries")
.add({key:'username',value:''})
.add({key:'password',value:'',display:'hidden'})
.success(function(response) {
})
.start();
Methods
.title('')
Sets the title name
.add({key:'<key'>, value: '', display:'<hidden|hidden_ascii>'})
Adds a field named '
.success()
Callback will be called after all keys have their associated values filled in, being passed the response object, i.e.
[{key:'username', value:'blitzcrank'},
{key:'password', value:'beepboop', display:'hidden'}]
.start
Call start to start collection.
npm i textlogin
Source Code
github.com/rook2pawn/node-te...Metadata
- BSD
- Whatever
- David Wee
- released 9/22/2012