0.9.9 • Published 3 years ago

scratch-search v0.9.9

Weekly downloads
2
License
GPL-3.0-or-later
Repository
-
Last release
3 years ago

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
});