Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -16,7 +16,7 @@ const PORT = process.env.PORT || 7860;
|
|
| 16 |
const app = express();
|
| 17 |
const writeFileAsync = promisify(fs.writeFile);
|
| 18 |
const fss = fs.promises;
|
| 19 |
-
|
| 20 |
const { exec } = require('child_process');
|
| 21 |
const cheerio = require('cheerio');
|
| 22 |
app.use('/static', express.static(os.tmpdir()));
|
|
|
|
| 16 |
const app = express();
|
| 17 |
const writeFileAsync = promisify(fs.writeFile);
|
| 18 |
const fss = fs.promises;
|
| 19 |
+
import sizeOf from 'image-size';
|
| 20 |
const { exec } = require('child_process');
|
| 21 |
const cheerio = require('cheerio');
|
| 22 |
app.use('/static', express.static(os.tmpdir()));
|