dsh-calc-tool

Calculator tool that evaluates arithmetic expressions with a hand-written recursive-descent parser. No eval or new Function; whitelisted identifiers, length and nesting limits, and structured error codes.

Overview

Calculator tool that evaluates arithmetic expressions with a hand-written recursive-descent parser. No eval or new Function; whitelisted identifiers, length and nesting limits, and structured error codes.

Installation

Install from GitHub

dsh plugin --profile web add github:yhy854/dsh-calc-tool

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.