Socket
Book a DemoInstallSign in
Socket

unixorn

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unixorn

Unix-like environment for the web

2.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

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.

Keywords

react

FAQs

Package last updated on 21 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.