chore: modify the readme to mention commonjs
This commit is contained in:
parent
38ddfd61f3
commit
d737304f14
|
@ -19,6 +19,8 @@ See the [GAMES_LIST.md](GAMES_LIST.md) file for the currently supported titles,
|
||||||
Install using your favorite package manager: `npm install gamedig`, then use!
|
Install using your favorite package manager: `npm install gamedig`, then use!
|
||||||
```js
|
```js
|
||||||
import { GameDig } from 'gamedig';
|
import { GameDig } from 'gamedig';
|
||||||
|
// Or if you're using CommonJS:
|
||||||
|
// const { GameDig } = require('gamedig');
|
||||||
|
|
||||||
GameDig.query({
|
GameDig.query({
|
||||||
type: 'minecraft',
|
type: 'minecraft',
|
||||||
|
|
Loading…
Reference in New Issue