Skip to content

Install

From npm

sh
bun add reearth-cms-integration-api-helper
sh
yarn add reearth-cms-integration-api-helper
sh
npm install reearth-cms-integration-api-helper

Requirements: Node 20.11+, Bun, Deno, or any modern browser / edge runtime that supports fetch and URLSearchParams. The package is ESM-only ("type": "module").

From a CDN

For browser / prototype use, import straight from esm.sh:

html
<script type="module">
  import { createClient } from "https://esm.sh/reearth-cms-integration-api-helper";

  const cms = createClient({
    baseUrl: "https://cms.example.com/api",
    token: "your-integration-token",
  });

  const { projects } = await cms.ProjectFilter({
    path: { workspaceIdOrAlias: "ws-1" },
  });
  console.log(projects);
</script>

To pin to a specific version:

js
import { createClient } from "https://esm.sh/reearth-cms-integration-api-helper@0.1.0";

Next

Released under the Apache-2.0 License.