browser-unix

unix in the browser

browser-unix

unix in the browser

example

var unix = require('browser-unix')();
unix.appendTo('#terminals');
unix.listenTo(window);

methods

var createUnix = require('browser-unix')

Create a new unix.

Append the terminals to the element or string query selector target.

Listen for keydown and keypress events from elem. window is a good value to use for elem.

Create a terminal.

Remove a terminal.

install

With npm do:

npm install browser-unix

Then compile your browser.js code with browserify:

browserify browser.js > static/bundle.js

license

MIT