Skip to main content

latest

Package that tries to make writing cross-runtime code easier.

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Bun, Cloudflare Workers
JSR Score
100%
Published
3 months ago (0.1.2)
interface CommandOptions

Options for command

Properties

optional
cwd: string | URL

The current working directory for the command

optional
stdin: StdioMode
optional
env: Record<string, string>

Environment variables to be set in the command environment

optional
clearEnv: boolean

Whether environment variables of currrent environment should be removed from the command

Provide a custom implementation for the web environment

Add Package

deno add @beast/compat

Import symbol

import { type CommandOptions } from "@beast/compat";

Add Package

npx jsr add @beast/compat

Import symbol

import { type CommandOptions } from "@beast/compat";

Add Package

yarn dlx jsr add @beast/compat

Import symbol

import { type CommandOptions } from "@beast/compat";

Add Package

pnpm dlx jsr add @beast/compat

Import symbol

import { type CommandOptions } from "@beast/compat";

Add Package

bunx jsr add @beast/compat

Import symbol

import { type CommandOptions } from "@beast/compat";