Skip to content

Instantly share code, notes, and snippets.

View AirplanegoBrr's full-sized avatar
🐢
Prob stalking someone?

AirplaneGobrr AirplanegoBrr

🐢
Prob stalking someone?
View GitHub Profile
@AirplanegoBrr
AirplanegoBrr / jackett_API.js
Created December 11, 2024 18:00
This is a simple script to help interface with the jackett API, its not done yet.
const axios = require('axios');
const { URL, URLSearchParams } = require('url');
let apiURL = process.env.JACKETT_API_URL || '';
let apiKey = process.env.JACKETT_API_KEY || '';
function toLowerCaseKeys(obj) {
if (Array.isArray(obj)) {
return obj.map(toLowerCaseKeys);
} else if (obj !== null && typeof obj === 'object') {