browser-unix

0.2.0 • Public • Published

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

/browser-unix/

    Package Sidebar

    Install

    npm i browser-unix

    Weekly Downloads

    5

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • nopersonsmodules