Giter VIP home page Giter VIP logo

unixorn's Introduction

README

NPM

Purpose

Unixorn aspires to be a Unix-like environment with a shell interface that:

  • can be embedded into a website

  • comes with a set of built-in commands and keybindings

  • can be extended with additional commands, keybindings and styles

You can view a live example of Unixorn in action.

Installation

Execute yarn add unixorn.

Basic Usage

In React

import React, { Component } from 'react'

import Unixorn from 'unixorn'

const configuration = {}

class Example extends Component {
  render() {
    return <Unixorn {...configuration} />
  }
}

Without React

import { initUnixorn } from 'unixorn'

const configuration = {}

const nonReactDomNode = document.getElementById('example')

initUnixorn(nonReactDomNode, configuration)

APIs

Typescript Exports

Consult the docs generated with typedoc.

CSS Classes

The following classes may be targeted for styling:

  • unixorn-base
  • unixorn-current
  • unixorn-cursor
  • unixorn-error
  • unixorn-input
  • unixorn-output
  • unixorn-prompt
  • unixorn-startup-message

Development

If you wish to submit a pull request, you should probably check the contributing guide first.

To install dependencies

Execute yarn install.

To build

Execute yarn run build.

To run

Execute yarn start.

To regenerate docs

Execute yarn docs.

To run the example app

Execute yarn install and yarn start in the example folder.

To run the test suite and linter

Execute yarn test.

unixorn's People

Contributors

rheber avatar giripriyadarshan avatar

Stargazers

kn8dev avatar Yousaf Nabi avatar

Watchers

James Cloos avatar  avatar  avatar

unixorn's Issues

need a multi branch workflow

need a dev/beta, and alpha branch to seek help with underdeveloped codes ..... the buggy code can be merged with alpha and worked on until it can be thoroughly tested on beta. After testing and confident enough to be released, it can be part of the master branch

... currently required for #40 PR

keyboard option for mobile devices

virtual keyboard option in mobile devices ..... currently no input is available on mobile phones as there is no virtual keyboard popping up when triggered

dynamic prompt

needs a prompt support which will help in cd implementation as current prompt prefix changes all the prompt prefix when changed

#35 solves this btw

Mobile support is a bit finnicky

Behavior appears to be that the first character is typed post-cursor and subsequent characters are typed pre-cursor. Moving the input HTML element may be the fix.

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.