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

x/dxx/src/lib/xProcess.ts

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

Variables

  • 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