#mizchi/js_node/process

    #node:process

    Process information and control

    #Installation

    Add to your moon.pkg.json:

    { "import": [ "mizchi/js", "mizchi/js_node/process" ] }

    #Process Information

    #Working Directory

    #Standard Streams

    #Process Control

    #Resource Usage

    #User/Group

    #Other

    Process

    #external
    pub type Process

    Process::as_any

    fn Process::as_any(self : Process) ->
    Any

    ProcessEnv

    #external
    pub type ProcessEnv

    ProcessEnv::as_any

    ProcessEnv::get

    fn ProcessEnv::get(e : ProcessEnv, key : String) -> String?

    ProcessEnv::has

    fn ProcessEnv::has(e : ProcessEnv, key : String) -> Bool

    argv

    fn argv() -> Array[String]

    JS: process.argv

    Note: The returned array is a snapshot and should be treated as immutable.

    chdir

    fn chdir(path : String) -> Unit

    JS: process.chdir(path)

    cwd

    fn cwd() -> String

    JS: process.cwd()

    env

    fn env() -> ProcessEnv

    JS: process.env

    exit

    fn exit(code : Int) -> Unit

    JS: process.exit(code)

    exitCode

    fn exitCode() -> Int

    JS: process.exitCode

    isTTY

    fn isTTY() -> Bool

    JS: process.isTTY

    nextTick

    fn nextTick(callback : () -> Unit) -> Unit

    JS: process.nextTick(callback)
    fn on(sig : String, listener : () -> Unit) -> Unit

    JS: process.on(sig, listener)

    process

    fn process() -> Process

    stderr

    JS: process.stderr Returns tty.WriteStream when connected to a TTY, otherwise stream.Writable

    stdin

    JS: process.stdin Returns tty.ReadStream when connected to a TTY, otherwise stream.Readable

    stdout

    JS: process.stdout Returns tty.WriteStream when connected to a TTY, otherwise stream.Writable

    version

    fn version() -> String

    JS: process.version

    versions

    fn versions() ->
    Any

    JS: process.versions

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io