@upstash/react-redis-cli
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

React Redis CLI for Upstash Redis

@upstash/react-redis-cli is a React component that provides a CLI interface to interact with Upstash Redis.

Install

Install the component via npm:

$ npm install @upstash/react-redis-cli

Usage

Here's a basic example of how to use the component:

import { RedisCli } from "@upstash/react-redis-cli"

import "@upstash/react-redis-cli/dist/index.css"

export default function Page() {
  return (
    <main style={mainStyle}>
      <RedisCli url={UPSTASH_REDIS_REST_URL} token={UPSTASH_REDIS_REST_TOKEN} />
    </main>
  )
}

const mainStyle = {
  width: "100vw",
  maxWidth: "900px",
  height: "500px",
  margin: "0 auto",
}

Readme

Keywords

none

Package Sidebar

Install

npm i @upstash/react-redis-cli

Weekly Downloads

22

Version

0.1.0

License

MIT

Unpacked Size

28.6 kB

Total Files

6

Last publish

Collaborators

  • mdogan
  • buggyhunter
  • cahidarda
  • upstashnpm
  • joshtc