mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-18 01:30:39 +01:00
Merge pull request #1 from rainst/rainst-npx-readme
Added npx usage example in the README
This commit is contained in:
commit
010f408184
1 changed files with 5 additions and 0 deletions
|
@ -527,5 +527,10 @@ After installing gamedig globally, you can call gamedig via the command line:
|
||||||
gamedig --type minecraft mc.example.com:11234
|
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
|
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.
|
as well: `--debug`, `--pretty`, `--socketTimeout 5000`, `--requestRules` etc.
|
||||||
|
|
Loading…
Reference in a new issue