1.0.1 • Published 6 years ago

react-repl-new v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

React Repl

A small react library to render a terminal emulator

Preview:

Console UI:

npm.io

Installation(dev)

$ git clone https://github.com/Husseinfarah93/replit.git
$ npm install
$ npm start

Go to localhost:1337

Installation(lib)

  1. Install
  npm install --save react-repl-emulator
  1. Import
  import Repl from 'react-repl-emulator'
  1. Use
  <Repl></Repl>

API

Optional Properties

  • height (string)
    This sets the height of the console. By default the console height is 100% of the body height.
  <Repl height="100px" />
  • width (string)
    This sets the width of the console. By default the console width is 100% of the body width.
  <Repl width="500px" />
  • textColour (string)
    This sets the colour of the text within the console. By default the text colour is #97ED8A #97ED8A
  <Repl textColour="red" /> || <Repl textColour="#B64926" />
1.0.1

6 years ago

1.0.0

6 years ago