### Install jora-cli Source: https://github.com/discoveryjs/jora-cli/blob/master/README.md Installs the jora-cli globally using npm. ```bash npm i -g jora-cli ``` -------------------------------- ### Example: Find packages with multiple versions Source: https://github.com/discoveryjs/jora-cli/blob/master/README.md Illustrates how to find packages that have more than one version installed by piping npm output to jora-cli and using a Jora query from a file. ```bash npm ls --json | jora find-multi-version-packages.jora ``` -------------------------------- ### Example: Get a single field Source: https://github.com/discoveryjs/jora-cli/blob/master/README.md Demonstrates how to extract a specific field (e.g., 'version') from a JSON input using jora-cli. ```bash jora version Output encoding: json (default), jsonxl (snapshot9) -f, --force Force overwriting output file -h, --help Output usage information -i, --input Input file -o, --output Output file (outputs to stdout if not set) -p, --pretty [indent] Pretty print with optionally specified indentation (4 spaces by default) -q, --query Jora query --verbose Output debug info about actions -v, --version Output version ``` -------------------------------- ### JSONXL Query and Conversion Source: https://github.com/discoveryjs/jora-cli/blob/master/README.md Demonstrates querying JSONXL data and converting between JSON and JSONXL formats using jora-cli. JSONXL is a binary format for JSON data. ```bash # Query JSONXL data jora output.jsonxl -e jsonxl # Convert JSONXL to JSON jora output.json ``` -------------------------------- ### Jora Query for Multiple Versions Source: https://github.com/discoveryjs/jora-cli/blob/master/README.md The Jora query used to identify packages with multiple versions. It processes dependency entries, groups them by name and version, and filters for groups with more than one version. ```js ..\(dependencies.entries().({ name: key, ...value })) .group(=>name, =>version) .({ name: key, versions: value }) .[versions.size() > 1] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.