Browse Source

convert to ESM

master
Alan Faubert 4 months ago
parent
commit
9d9e12dbef
  1. 1
      package.json
  2. 12
      sfu.js

1
package.json

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

12
sfu.js

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

Loading…
Cancel
Save