jq

    jq command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.2.5
    License
    Apache-2.0
    Last updated
    10 hours ago
    Downloads
    94

    #jq

    Filter JSON for MoonX.

    moonx cli/jq@0.2.5 [OPTION]... [FILTER] [FILE...]

    #Supported scope

    Apply jq-compatible filters to consecutive JSON values, files or stdin. Supports maps, reduce, assignments, try/catch, variables and Unicode string slices. No filter selects identity.

    #Options

    OptionDescription
    -c, --compact-outputprint compact JSON
    -r, --raw-outputprint strings without JSON quotes
    -j, --join-outputraw output without result separators
    -n, --null-inputevaluate once with null; do not read inputs
    -s, --slurpcollect input values in an array
    -R, --raw-inputread text lines; -Rs reads all text
    -l, --logsskip non-JSON lines (project extension)
    -S, --sort-keyssort object keys recursively
    -e, --exit-statusreturn 1 for false/null, 4 for no result
    -f, --from-file FILEread the filter from FILE
    --arg NAME VALUEbind a string variable
    --argjson NAME JSONbind a JSON variable
    --indent Nindentation -1 (tabs) through 7
    --tabindent with tabs
    -C, --color-outputemit ANSI colors (JQ_COLORS customizes the palette)
    -M, --monochrome-outputdisable colors, including when -C is present
    --help / --versionShow help / package version.

    #Limitations

    • Modules, --stream events and full jq compatibility are unsupported.
    • Color requires explicit -C; automatic terminal color is unavailable. -l/--logs skips invalid lines and conflicts with -n/-R.

    #Examples

    printf '%s' '{"name":"Moon"}' | moonx cli/jq@0.2.5 -r '.name' moonx cli/jq@0.2.5 -n -c '{ok: true, values: [1, 2]}'

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io