@monosecret/client
v0.1.0
Published
TypeScript client for Monosecret declarative secrets management
Downloads
204
Readme
@monosecret/client
TypeScript client for Monosecret, implemented as a small typed wrapper around the monosecret CLI.
Install
pnpm add @monosecret/client @monosecret/cliUsage
import { MonosecretClient } from "@monosecret/client";
const monosecret = new MonosecretClient();
const databaseUrl = await monosecret.get("DATABASE_URL", {
profile: "development",
});
await monosecret.check({ noPrompt: true });
const environment = await monosecret.loadEnvironment({
include: ["DATABASE_URL", "API_KEY"],
});By default the client runs monosecret from PATH. Pass executable, workingDirectory, or environment to customize the child process.
