JSPM

scratch-search

0.9.9
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 7
    • Score
      100M100P100Q14706F
    • License GPL-3.0-or-later

    Project search API wrapper for Scratch

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