Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/dxx/src/lib/$locals.ts

๐Ÿš€ (Deno) enhanced executor
Latest
import * as dxx from "https://deno.land/x/dxx@rf/src/lib/$locals.ts";

Variables

Get the size of the console used by rid as columns/rows, using options.

  • async
  • array of 'shell'-expanded arguments; simple pass-through of Deno.args for non-Windows platforms
  • Promise for an array of 'shell'-expanded arguments; simple pass-through of Deno.args for non-Windows platforms
  • array of 'shell'-expanded arguments; simple pass-through of Deno.args for non-Windows platforms
  • executable text string which initiated/invoked execution of the current process
  • process command line, when available
  • process command line ~ split into semantic parts
  • runner specific command line options
  • raw arguments are available for interpretation/expansion OR an "advanced" runner/shell is assumed to have already done correct argument expansion
  • shim supplies enhanced arguments
  • calculated or supplied argv0 is available for interpretation/expansion

impaired '$0' and/or argument resolution, ie:

  • process name (eg, '$0') is not supplied and must be determined heuristically
  • and/or onlyprocessed* arguments are available (via Deno.args()) which have lost quote-context and cannot distinguish ... from "..."
  • process was invoked by direct execution
  • process was invoked as an eval script (eg, deno eval ...)
  • name of main script file (from best guess path)
  • path string of main script file (best guess from all available sources)
  • executable string which can be used to re-run current application; eg, Deno.run({cmd: [ runAs, ... ]});
  • summary of information transmitted by 'shim'-executable initiating the main script, when available

Functions

Get the size of the console used by rid as columns/rows, using options.

  • async
  • results are cached; cache may be disabled via the { useCache: false } option
  • a fast synchronous method (with fallback to multiple racing asynchronous methods) is used for a robust, yet quick, result

Get the size of the console used by rid as columns/rows, using options.

  • unstable ~ requires the Deno --unstable flag for successful resolution (b/c the used Deno.consoleSize() function is unstable API [as of Deno v1.19.0, 2022-02-17])
  • results are cached; cached entries will be ignored/skipped when using the { useCache: false } option

Get the size of the console used by rid as columns/rows, using options, via the Deno API.

  • unstable ~ requires the Deno --unstable flag for successful resolution (b/c the used Deno.consoleSize() function is unstable API [as of Deno v1.19.0, 2022-02-17])

Get the size of the console as columns/rows, using the mode shell command.

Get the size of the console as columns/rows, using PowerShell.

Get the size of the console as columns/rows, using the stty shell command.

Get the size of the console as columns/rows, using the tput shell command.

Type Aliases

Options for ConsoleSize functions ...

  • consoleFileFallback ~ fallback to use of a "console" file if rid and fallback(s) fail ; default = true
  • fallbackRIDs ~ list of fallback resource IDs if initial rid fails ; default = Deno.stderr.rid
  • useCache ~ cache/memoize prior values ; default = true