Package Exports
- scratch-search
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (scratch-search) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
});