0.1.2 • Published 3 years ago

react-ftelnet v0.1.2

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

react-ftelnet

fTelnet as a React component.

Install it:

npm install react-ftelnet

import it:

import FTelnet from 'react-ftelnet';

use it:

// Available props and their defaults are shown here.
// You don't need to specify all of these.
<FTelnet
  autoConnect={false}
  crossOrigin={null}
  fTelnetOptions={{}}
  noRip={false}
  noXfer={false}
  refresh={86400000}
  scriptSrc=""
  scriptID="fTelnetScript"
  divID="fTelnetDiv"
/>
PropTypeDescription
autoConnectbooleanConnect as soon as fTelnet is finished loading
crossOriginstring or nullString value for crossorigin attribute of the fTelnet script element, or null for none
fTelnetOptionsobjectOverrides for fTelnetOptions. You will at least want to set Host and Port to something other than the default.
noRipbooleanDisable RIP graphics
noXferbooleanDisable file transfers
refreshnumberTTL in ms for the URL to the fTelnet script source (0 to refresh each time this component mounts)
scriptSrcstringPath/URL to ftelnet script src if you're hosting it yourself (renders noRip, noXfer, refresh invalid)
scriptIDstringThe id attribute for the script element (not sure if necessary or safe to override if so)
divIDstringThe id attribute for the target div