add index.js

This commit is contained in:
quagmire 2022-03-13 15:46:12 +00:00
parent 7540a56622
commit acad3c34ca

15
index.js Normal file
View file

@ -0,0 +1,15 @@
var target = process.argv[2];
(async () => {
const { YiffRocks } = require("yiff-rocks")
const isgd = require("isgd-api")
for(i = 0; i < 100; i++) {
var yiff = await YiffRocks.create(target)
target = yiff.fullURL
var gd = await isgd.shorten(target)
target = gd
console.log(target)
}
console.log(target)
})();