Giter Site home page Giter Site logo

dontcallmebigguy / shell.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidecaruso/shell.js

0.0 0.0 0.0 7.49 MB

:zap: A JavaScript library to create HTML terminals in web pages.

Home Page: https://shelljs.io

License: MIT License

JavaScript 5.73% CSS 28.67% HTML 4.96% TypeScript 60.63%

shell.js's Introduction

Shell.js

A JavaScript library to create HTML terminals in web pages.

npm npm snyk travis coveralls license

Install

$ yarn add shell.js # recommended
$ npm i shell.js
$ bower install shell.js --save

Options

For each Shell instance you can set the following options:

Options Allowed values Description Defaut value
user string The user "user"
host string The host "host"
path string The working directory "~" | "C:\Windows\system32"
style "default"|"ubuntu"|"osx"|"windows" The OS style "default"
theme "dark"|"light" The theme "dark"
responsive boolean Responsiveness true
typed Typed callable Typed.js integration to make shell alive null
commands array The commands list []

Usage

Create a HTML element with a specified ID...

<div id="awesome-shell"></div>

...and pass the CSS selector to the Shell.js constructor:

document.addEventListener('DOMContentLoaded', function() {
    let shell = new Shell('#awesome-shell', {
        user: 'foobar',
        host: 'MacMini',
        path: '/etc/',
        style: 'osx',
        theme: 'dark',
        responsive: false,
        commands: ['First command', 'Second command', '...']
    });
});

Visit the documentation page

Author

Davide Caruso

License

Licensed under MIT.

shell.js's People

Contributors

davidecaruso avatar runciters avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.