1.0.1 • Published 8 years ago

console-widget v1.0.1

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

console-widget

An interactive console control widget for your webpage

screenshot

Interactive demo at http://deathcap.github.io/console-widget (or run npm start)

Usage

var consoleWidget = require('console-widget')();

consoleWidget.open();

You can write text to the console output using:

consoleWidget.log('hello');
// or add arbitrary DOM nodes using logNode() instead

and handle user input by listening to the 'input' event:

consoleWidget.on('input', function(text) {
    consoleWidget.log('You wrote: ' + text);
});

License

MIT

1.0.1

8 years ago

1.0.0

8 years ago

0.2.2

8 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago