# react-bate-terminal

> Made with create-react-library

Latest version **1.0.6** (published 2023-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-bate-terminal
pnpm add react-bate-terminal
yarn add react-bate-terminal
bun add react-bate-terminal
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-11-22 |
| First published | 2023-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 3 |
| Unpacked size | 42.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | https://github.com/Kaung-Myat-Hun |
| Maintainers | kaungmyathun |

## Links

- npm: https://www.npmjs.com/package/react-bate-terminal
- Repository: https://github.com/Kaung-Myat-Hun/react-b-terminal
- Homepage: https://github.com/Kaung-Myat-Hun/react-b-terminal#readme
- Issues: https://github.com/Kaung-Myat-Hun/react-b-terminal/issues
- npm.io page: https://npm.io/package/react-bate-terminal

## Dependencies (3)

- [postcss-normalize](https://npm.io/package/postcss-normalize.md) ^10.0.1
- [postcss-preset-env](https://npm.io/package/postcss-preset-env.md) ^9.3.0
- [postcss-flexbugs-fixes](https://npm.io/package/postcss-flexbugs-fixes.md) ^5.0.2

## Recent versions

- 1.0.6 (latest) — 2023-11-22
- 1.0.5 — 2023-11-22
- 1.0.4 — 2023-11-22
- 1.0.3 — 2023-11-22
- 1.0.2 — 2023-11-22
- 1.0.1 — 2023-11-22
- 1.0.0 — 2023-11-22

## README

# react-b-terminal

> Made with create-react-library

[![NPM](https://img.shields.io/npm/v/react-b-terminal.svg)](https://www.npmjs.com/package/react-b-terminal) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-bate-terminal --force
```

## Usage

```jsx
import React ,{ useState } from 'react'

import { BTerminal } from 'react-bate-terminal'

function myComponent(){
  const [show, setShow] = useState(false)
  const data = [{
    command : "hello",
    output: "world"
  },
  {
    command: "mail",
    output: () => {/* when you are creating funcion this will execute when your command input
      like this */
      alert("hello world!");
    }
  },
  {
    command : "close",
    output: "close"
  },
  {
    command : "help",
    output : "this is help message for your terminal"
  }
  ]
  const close = () =>{ // command is close and exit this is default 
    setShow(false);
  }
  
    return <BTerminal close={close} main="this is main text" data={data} />
  
}
```

## License

MIT © [https://github.com/Kaung-Myat-Hun](https://github.com/https://github.com/Kaung-Myat-Hun)

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