Khrisna commited on
Commit
bcbd89a
·
verified ·
1 Parent(s): 4bcfb84

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +12 -1
index.js CHANGED
@@ -34,4 +34,15 @@ app.all('/', (req, res) => {
34
  const PORT = process.env.PORT || 7860
35
  app.listen(PORT, () => {
36
  console.log('App running on port', PORT)
37
- })
 
 
 
 
 
 
 
 
 
 
 
 
34
  const PORT = process.env.PORT || 7860
35
  app.listen(PORT, () => {
36
  console.log('App running on port', PORT)
37
+ })
38
+
39
+ function formatSize(num) {
40
+ return bytes(+num || 0, { unitSeparator: ' ' })
41
+ }
42
+ function isBase64(str) {
43
+ try {
44
+ return btoa(atob(str)) === str
45
+ } catch {
46
+ return false
47
+ }
48
+ }