mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
Add support for running using deno (#362)
* Add missing CRLF line ending * Add support for running using deno Prefix node imports with "node:" and gate a socket API that is not implemented in [deno](https://deno.land) so that the library can be used there. This should not break node and doesn't in my brief testing.
This commit is contained in:
parent
150fa0035f
commit
01794f6339
11 changed files with 32 additions and 14 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import * as process from "node:process";
|
||||
|
||||
import Minimist from 'minimist'
|
||||
import GameDig from './../lib/index.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import * as fs from 'fs'
|
||||
import * as fs from 'node:fs'
|
||||
import GameResolver from '../lib/GameResolver'
|
||||
|
||||
const gameResolver = new GameResolver()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue