Skip to content

itsjoesullivan/browser-unix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

unix in the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published