console-widget
v1.0.1
Published
An interactive console control widget for your webpage
Downloads
7
Readme
console-widget
An interactive console control widget for your webpage
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