scratch-search
v0.9.9
Published
Project search API wrapper for Scratch
Downloads
4
Readme
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
});