New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

staerm

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

staerm

Stateful, declarative & predictive library to build reactive terminal UIs

latest
Source
npmnpm
Version
3.2.0
Version published
Maintainers
1
Created
Source

staerm

Stateful, declarative & predictive library to build reactive terminal UIs.

Principles

  • The state of terminal at any given point can be represented by a simple object with the type –

    { text: string
    , input:
        | null
        | { position:
              { x: number
              , y: number
              }
          , caretOffset: number
          , length: number
          }
    }
    
  • The state.text is the (preferable) source of truth for all other internal app state. And optionally state.input but should be avoided if possible.

What, why & usage

Will add soon, by the time look at src/examples/hello.ts

FAQs

Package last updated on 14 Dec 2019

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