react-simple-terminal
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

react-simple-terminal

  • Mobile friendly
  • Super simplistic
  • Stylable
  • Fixes tailwind outline border on focus.
  • Allows async functions

Demo

Install

npm install --save react-simple-terminal

Usage

import { SimpleTerminal } from 'react-simple-terminal'

const App = () => {
  const commands = {
    hello: 'Hello world!',
    'help': (args) => `HELP for args: ${args}`,
    test: async() => (await fetch("https://wtfismyip.com/text")).text()
  }

  return (
      <SimpleTerminal commands={commands} prompt={'$'} style={{ color: '#00ff00' }} />
  )
}

/react-simple-terminal/

    Package Sidebar

    Install

    npm i react-simple-terminal

    Weekly Downloads

    1

    Version

    1.0.16

    License

    MIT

    Unpacked Size

    14 kB

    Total Files

    17

    Last publish

    Collaborators

    • funerr