0.9.9 • Published 3 years ago
scratch-search v0.9.9
scratch-search
Just a normal search client for Scratch.
const {searchProjects} = require("scratch-search");
searchProjects
const searchProjectsPromise = searchProjects(q, {
fetchImpl: globalThis.fetch, // fetch() implementation (e.g. node-fetch)
origin: "https://api.scratch.mit.edu", // API origin (e.g. CORS proxy)
mode: "trending",
limit: 20,
offset: 0
});
searchStudios
const searchStudiosPromise = searchStudios(q, {
fetchImpl: globalThis.fetch, // fetch() implementation (e.g. node-fetch)
origin: "https://api.scratch.mit.edu", // API origin (e.g. CORS proxy)
mode: "trending",
limit: 20,
offset: 0
});
0.9.9
3 years ago