# unixorn

> Unix-like environment for the web

Latest version **2.1.1** (published 2023-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install unixorn
pnpm add unixorn
yarn add unixorn
bun add unixorn
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2023-06-21 |
| First published | 2021-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 11.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | rheber |
| Maintainers | rheber |
| Keywords | react, shell, terminal |

## Links

- npm: https://www.npmjs.com/package/unixorn
- Repository: https://github.com/rheber/unixorn
- Homepage: https://github.com/rheber/unixorn#readme
- Issues: https://github.com/rheber/unixorn/issues
- npm.io page: https://npm.io/package/unixorn

## Dependencies (1)

- [glamor](https://npm.io/package/glamor.md) ^2.20.40

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.1.1 (latest) — 2023-06-21
- 2.1.0 — 2021-10-16
- 2.0.1 — 2021-10-08
- 2.0.0 — 2021-04-25
- 1.2.1 — 2021-04-02
- 1.2.0 — 2021-03-30
- 1.1.0 — 2021-03-27
- 1.0.0 — 2021-03-26

## README

# README

[![NPM](https://nodei.co/npm/unixorn.png?compact=true)](https://nodei.co/npm/unixorn/)

## 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](https://rheber.github.io/unixorn/example/index.html) 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](https://rheber.github.io/unixorn/docs/index.html).

### 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`.

---
_Source: https://npm.io/package/unixorn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
