2.0.1 • Published 4 years ago

reason-ink v2.0.1

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

reason-ink

ReasonML (BuckleScript) binding for Ink

Let's build interactive CLI with React and ReasonML!

Supports

Core:

  • render

Context:

  • StdinContext
  • StdoutContext
  • StderrContext

Components:

  • App
  • Box
  • Color
  • Text
  • Static
  • Transform

Hooks:

  • useApp
  • useInput
  • useStdin
  • useStdout
  • useStderr

Do you find any missing APIs? Let me know!

Requirements

  • BuckleScript v7.3.0 or higher (to compile unit as undefined value)
  • Reason React v0.7.0 or higher (to use hooks)

Install

yarn add reason-react reason-ink

Add it to your bsconfig.json

  "bs-dependencies": [
+   "reason-react",
+   "reason-ink"
  ]

Example

See examples

License

See LICENSE