Spaces:
Running
Running
Update lib/toanime.js
Browse files- lib/toanime.js +3 -2
lib/toanime.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import WebSocket from "ws";
|
2 |
|
3 |
|
4 |
-
function
|
5 |
return new Promise(async(resolve, reject) => {
|
6 |
//const imgBuffer = await axios.get(urls, { responseType: "arraybuffer" });
|
7 |
const imgBase64 = imgBuffer.toString("base64");
|
@@ -45,4 +45,5 @@ function toanime({imgBuffer}) {
|
|
45 |
})
|
46 |
}
|
47 |
|
48 |
-
|
|
|
|
1 |
import WebSocket from "ws";
|
2 |
|
3 |
|
4 |
+
function toAnime({imgBuffer}) {
|
5 |
return new Promise(async(resolve, reject) => {
|
6 |
//const imgBuffer = await axios.get(urls, { responseType: "arraybuffer" });
|
7 |
const imgBase64 = imgBuffer.toString("base64");
|
|
|
45 |
})
|
46 |
}
|
47 |
|
48 |
+
|
49 |
+
export { toAnime };
|