alan
/
sfu
1
Fork 0

convert to ESM

This commit is contained in:
Alan Faubert 2021-06-06 11:43:11 -04:00
parent 8bd780e97e
commit 9d9e12dbef
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,5 @@
{ {
"type": "module",
"dependencies": { "dependencies": {
"busboy": "*" "busboy": "*"
} }

12
sfu.js
View File

@ -1,12 +1,10 @@
#!/usr/bin/env node #!/usr/bin/env node
'use strict'; import Busboy from 'busboy';
import crypto from 'crypto';
const Busboy = require('busboy'); import fs from 'fs';
const crypto = require('crypto'); import http from 'http';
const fs = require('fs'); import readline from 'readline';
const http = require('http');
const readline = require('readline');
if (process.argv.length < 3 || process.argv.length > 4) { if (process.argv.length < 3 || process.argv.length > 4) {
console.error('Arguments: <port> [host]'); console.error('Arguments: <port> [host]');