pare-deno

v0.24.2
io.github.Dave-London/pare-deno Checked 3 hours ago Published 3 days ago

Pare Deno — Structured Deno runtime operations as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run Deno Run

Runs a Deno script with `deno run` and returns structured output (stdout, stderr, exit code, duration).

ParameterTypeDescription
file *stringScript file to run (e.g. main.ts, server.ts)
allowAllbooleanAllow all permissions (-A). Use with caution.
allowEnvbooleanAllow environment variable access (--allow-env)
allowNetbooleanAllow network access (--allow-net)
allowReadbooleanAllow file system read access (--allow-read)
allowWritebooleanAllow file system write access (--allow-write)
argsarrayAdditional arguments to pass to the script
compactbooleanPrefer compact output
pathstringProject root path

test Deno Test

Runs `deno test` and returns structured pass/fail output with per-test results.

ParameterTypeDescription
allowAllbooleanAllow all permissions (-A). Defaults to true for test convenience.
compactbooleanPrefer compact output
failFastbooleanStop on first failure (--fail-fast)
filesarrayTest files or directories to run (default: auto-discovered)
filterstringFilter tests by name pattern (--filter)
pathstringProject root path

fmt Deno Fmt

Runs `deno fmt` to check or write code formatting. Returns structured list of affected files.

ParameterTypeDescription
checkbooleanCheck formatting without writing (--check). Defaults to true.
compactbooleanPrefer compact output
filesarrayFiles or directories to format (default: current directory)
pathstringProject root path

lint Deno Lint

Runs `deno lint` and returns structured diagnostics with file, line, column, code, and message.

ParameterTypeDescription
compactbooleanPrefer compact output
excludearrayExclude specific lint rules (--rules-exclude)
filesarrayFiles or directories to lint (default: current directory)
pathstringProject root path
rulesarrayInclude specific lint rules (--rules-include)

check Deno Check

Runs `deno check` for type-checking without execution. Returns structured type errors.

ParameterTypeDescription
allbooleanType-check all modules including remote (--all)
compactbooleanPrefer compact output
filesarrayFiles to type-check (at least one required)
pathstringProject root path

task Deno Task

Runs a named task from deno.json via `deno task` and returns structured output (stdout, stderr, exit code, duration).

ParameterTypeDescription
name *stringTask name as defined in deno.json
argsarrayAdditional arguments to pass to the task
compactbooleanPrefer compact output
pathstringProject root path

info Deno Info

Runs `deno info` to show dependency information for a module. Returns structured dependency data.

ParameterTypeDescription
compactbooleanPrefer compact output
modulestringModule specifier or file path to inspect (shows cache info if omitted)
pathstringProject root path