0.0.3 ā€¢ Published 2 years ago

terminal-commando v0.0.3

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

Terminal or cli for web applications

šŸ  Homepage

āœØ Demo

Install

npm install terminal-commando

Usage

import {Terminal} from 'terminal-commando';

export default function Example() {     
  const [output, setoutput] = useState('')
  const [error, seterror] = useState('')
  cost handleReset = () => {
    setoutput('')
    seterror('')
  }
  return  (
    <>
      <button onClick={()=>setoutput('this is sample output')}>Output</button>
      <button onClick={()=>seterror('this is sample error')}>Error</button>
      <Terminal error={error} output={output} resetData={handleReset} />
    </>
    )
}

Author

šŸ‘¤ Shraddha Teltumbade

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2022 Shraddha Teltumbade. This project is MIT licensed.

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago