convert to ESM
This commit is contained in:
parent
8bd780e97e
commit
9d9e12dbef
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"busboy": "*"
|
"busboy": "*"
|
||||||
}
|
}
|
||||||
|
|
12
sfu.js
12
sfu.js
|
@ -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]');
|
||||||
|
|
Loading…
Reference in New Issue