mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-17 17:25:19 +01:00
chore: modify the readme to mention commonjs
This commit is contained in:
parent
38ddfd61f3
commit
d737304f14
1 changed files with 2 additions and 0 deletions
|
@ -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!
|
||||
```js
|
||||
import { GameDig } from 'gamedig';
|
||||
// Or if you're using CommonJS:
|
||||
// const { GameDig } = require('gamedig');
|
||||
|
||||
GameDig.query({
|
||||
type: 'minecraft',
|
||||
|
|
Loading…
Reference in a new issue