printf

    printf command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.3
    License
    Apache-2.0
    Last updated
    9 days ago
    Downloads
    94

    #printf

    Print formatted values for MoonX.

    moonx cli/printf@0.2.3 FORMAT [ARGUMENT...]

    #Supported scope

    Reuse FORMAT until arguments are consumed. Supports strings, characters, escaped strings, integers, floats, shell quoting, width and precision.

    #Options

    OptionDescription
    FORMAT [ARG...]Conversions: s c b d i u o x X f F e E g G a A q and %.
    --End options before a format beginning with -.
    --help / --versionShow help / package version.

    #Limitations

    • %q accepts no flags, width or precision. Non-C locales are unsupported.
    • Floating output follows GNU Linux amd64 extended precision, not the host's floating ABI.

    #Examples

    moonx cli/printf@0.2.3 '%s=%d\n' answer 42 moonx cli/printf@0.2.3 '%s\n' one two three

    Source Files