got nekos?

node v12.22.12
version: 2.0.0
endpointsharetweet
require('http').createServer((req, res) => { res.end(` <head> <title>Got nekos?</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> </head> <body> <script> fetch('https://nekos.life/api/v2/img/neko').then(r => r.json()).then(d => { document.body.innerHTML = 'Got nekos? Refresh to see more!<br><img src="' + d.url + '" style="height: 94vh"/>'; }); </script> </body>`); }).listen(process.env.PORT);
Loading…

no comments

    sign in to comment