Sign in

    uv

    MoonBit binding to libuv

    Download zip
    Version
    0.6.0
    License
    Apache-2.0
    Last updated
    last year
    Downloads
    1K

    #tonyfettes/uv

    This is a MoonBit binding to the libuv library.

    #Quickstart

    1. Add this module as a dependency to your MoonBit project.

      moon update moon add tonyfettes/uv

    2. Import tonyfettes/uv package where you need it.

      { "import": [ "tonyfettes/uv" ] }

    3. Use the tonyfettes/uv package in your MoonBit project.

      fn main {
      try {
      let uv = @uv.Loop::new!()
      let options = @uv.ProcessOptions::new(
      "mkdir",
      ["mkdir", "test-dir"],
      fn(process, exit_status, term_signal) {
      println(
      "Process exited with status \{exit_status} and signal \{term_signal}",
      )
      process.close(fn(_) { })
      },
      )
      let process = uv.spawn!(options)
      println("Launched process with ID \{(process).pid()}")
      uv.run!(Default)
      uv.stop()
      uv.close!()
      } catch {
      error => println("Error: \{error}")
      }
      }

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io