1.0.16 • Published 2 years ago

react-simple-terminal v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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' }} />
  )
}
1.0.16

2 years ago

1.0.15

2 years ago