Merge pull request #281 from rainst/master

Add npx usage in the README
This commit is contained in:
Michael Morrison 2022-05-16 21:16:31 -05:00 committed by GitHub
commit 8a02bbcb8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.