beastjs

command
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command beastjs runs a JavaScript file in the engine of this module, set up as tifa sets it up, without writing Go:

beastjs [flags] file.js [args...]
beastjs [flags] -e code [args...]

The script runs as a global script in one VM, then the promise jobs it queued. The VM has what package tifa gives it, as tifa gives it to each VM of its pool: Intl, Temporal, URL and URLSearchParams, and the functions named __tifa_* of tifa.Hooks. It also has Go's fmt as fmt, and calls may nest 10000 deep, as in tifa. The script also has print, console.log and console.error, which write their arguments, each made a string, to stdout (stderr for console.error), and scriptArgs, the arguments after the flags. It has no file system, network, timers or modules. The run ends at the timeout and at the memory limit whatever the script catches. docs/use/command.md has the exit codes and why the defaults are what they are.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL