JavaScript SDK
Documentation for the Redenv JavaScript/TypeScript SDK.
JavaScript SDK
The @redenv/client package allows you to fetch secrets in your Node.js, edge, or browser environments.
Installation#
npm install @redenv/client
pnpm add @redenv/client
yarn add @redenv/client
Usage#
import { } from "@redenv/client";
const = new ({
: "my-project",
: "my-token",
: "my-token-id",
: {
: "https://upstash.com",
: "my-upstash-token",
},
});
async function () {
const = await .();
const = .("my-secret");
.();
}
();Features#
- Type-safe: Built with TypeScript.
- Universal: Works in Node, Bun, Deno, and Edge runtimes.
- Caching: Built-in caching for performance.