Update README.md to capitalize on the d in GameDig

This commit is contained in:
CosminPerRam 2023-09-11 02:16:02 +03:00
parent 0c32880099
commit 727d6327dd

View file

@ -16,8 +16,8 @@ npm install gamedig
``` ```
```javascript ```javascript
const Gamedig = require('gamedig'); const GameDig = require('gamedig');
Gamedig.query({ GameDig.query({
type: 'minecraft', type: 'minecraft',
host: 'mc.example.com' host: 'mc.example.com'
}).then((state) => { }).then((state) => {
@ -128,7 +128,7 @@ In some very rare scenarios, you may need to bind / listen on a fixed local UDP
some extremely strict firewalls, or within a docker container (where you only wish to forward a single UDP port). some extremely strict firewalls, or within a docker container (where you only wish to forward a single UDP port).
To use a fixed listen udp port, construct a new Gamedig object like this: To use a fixed listen udp port, construct a new Gamedig object like this:
``` ```
const gamedig = new Gamedig({ const gamedig = new GameDig({
listenUdpPort: 13337 listenUdpPort: 13337
}); });
gamedig.query(...) gamedig.query(...)