moonlib

    Shared utility library for the Moon suite

    Download zip
    Author
    Version
    0.1.8
    License
    Apache-2.0
    Last updated
    4 months ago
    Downloads
    818

    #MoonLib — Shared utilities for the Moon suite

    Shared utility library used by moonstat, moonclaw, moondesk, moontown, and moonbook.

    #Packages

    PackageDescriptionOrigin
    fsxFilesystem operationsextracted from moonstat, moonclaw, moondesk, moonbook
    pathxPath manipulationextracted from moonstat, moonclaw, moondesk, moonbook
    spawnProcess spawningextracted from moonstat, moonclaw
    uuidUUID generationextracted from moonstat, moonclaw
    errnoErrno constantsextracted from moonstat, moonclaw
    osOS utilitiesextracted from moonstat, moonclaw
    randRandom bytesextracted from moonstat, moonclaw
    clockTime/clock utilitiesextracted from moonstat, moonclaw
    cC FFI helpersextracted from moonstat, moonclaw
    moonsuiteShared MoonSuite filesystem contractsextracted from moondesk migration plan

    #Usage

    Add to your moon.mod:

    import { "vectie/moonlib@0.1.0", }

    Then import in your code:

    let path = @pathx.join(home, ".moonsuite")
    let exists = @fsx.exists(path)
    let product_home = @moonsuite.product_dir(home, "moonclaw")

    #Publishing

    moon publish