Socket
Book a DemoInstallSign in
Socket

bs-ink

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-ink

BuckleScript binding for ink

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

bs-ink

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 bs-ink

Add it to your bsconfig.json

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

Example

See examples

License

See LICENSE

FAQs

Package last updated on 16 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts