0.2.0 • Published 11 years ago

browser-unix v0.2.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

browser-unix

unix in the browser

example

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

methods

var createUnix = require('browser-unix')

var unix = createUnix()

Create a new unix.

unix.appendTo(target)

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

unix.listenTo(elem)

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

var term = unix.createTerminal()

Create a terminal.

term.remove()

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