create stylish text ansi logins and ansi based menus!

Usage no npm install needed!

<script type="module">
  import textlogin from 'https://cdn.skypack.dev/textlogin';



Collect a username, password, and any other fields you want in style!

var textlogin = require('./index')();
    .title("Beep Boop Industries")
    .success(function(response) {



Sets the title name

.add({key:'<key'>, value: '', display:'<hidden|hidden_ascii>'})

Adds a field named '' with initial value ''. Display field is optional and can be one of the following two: hidden or hidden_ascii. Use hidden_ascii if you want a simple '*' for your display value.


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'}]


Call start to start collection.