This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
async function getProjects() { | |
const url = "https://api.modrinth.com/v2/search"; | |
let page = 0; | |
const projectsInfo = []; | |
while (true) { | |
const params = { | |
index: "relevance", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run using node handle.js | |
// Install axios using npm install axios | |
// nodejs v18+ | |
const axios = require('axios'); | |
// ===================== | |
// === Configuration === | |
// ===================== | |
// Replace these constants with your actual credentials and desired handle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Day 1 Part 1 | |
const input = `` | |
const split = input.split("\n"); | |
let list1 = []; | |
let list2 = []; | |
for (let item of split) { |