From 5a6bb397b19df1cbb5fb6af7eca257eb278f8777 Mon Sep 17 00:00:00 2001 From: Renato Date: Tue, 17 May 2022 10:14:22 +1000 Subject: [PATCH] Added npx usage example in the README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6e21a6c..6bb80b7 100644 --- a/README.md +++ b/README.md @@ -527,5 +527,10 @@ After installing gamedig globally, you can call gamedig via the command line: gamedig --type minecraft mc.example.com:11234 ``` +Alternatively, if you don't want to install gamedig globally, you can run it with npx: +```shell +npx gamedig --type minecraft mc.example.com:11234 +``` + The output of the command will be in JSON format. Additional advanced parameters can be passed in as well: `--debug`, `--pretty`, `--socketTimeout 5000`, `--requestRules` etc.