Installation
Requires Node.js >= 20.3, for AbortSignal.any, which merges your signal with the client's timeout. Ships ESM and CommonJS builds with bundled type declarations.
sh
npm install @fbritoferreira/strapish
pnpm add @fbritoferreira/strapish
yarn add @fbritoferreira/strapiFrom JSR
The same package is published to JSR as TypeScript source, for Deno, Bun and npm-compatible projects.
sh
deno add jsr:@fbritoferreira/strapish
npx jsr add @fbritoferreira/strapish
pnpm dlx jsr add @fbritoferreira/strapish
bunx jsr add @fbritoferreira/strapiIn Deno you can also import it without installing:
ts
import { Strapi } from "jsr:@fbritoferreira/strapi";
const strapi = new Strapi({ baseURL: "http://localhost:1337", defaultLocale: "en" });The JSR package exports the client library only. The strapi-client CLI is available from npm.