bu
browser-unix
npm i browser-unix
bu

browser-unix

unix in the browser

by James Halliday

0.2.0 (see all)License:MITTypeScript:Not Found
npm i browser-unix
Readme

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

Downloads/wk

4

GitHub Stars

60

LAST COMMIT

9yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

4

OPEN PRs

1
VersionTagPublished
0.2.0
latest
9yrs ago
No alternatives found
No tutorials found
Add a tutorial