9 lines
307 B
JavaScript
9 lines
307 B
JavaScript
const { request } = require("undici");
|
|
// https://en.wikipedia.org/w/api.php
|
|
async function sus () {
|
|
const query = new URLSearchParams("sus");
|
|
const wikiResult = await request(`https://en.wikipedia.org/wiki/sus`);
|
|
const result = await wikiResult.body;
|
|
console.log((await result.json()))
|
|
}
|
|
sus()
|