Installation
Install the package you need and check the requirements.
Install the package for your environment — it pulls in the ones it depends on.
npm install swiperia-reactnpm install swiperia-jsnpm install swiperia-coreRequirements
- Node.js 18 or newer for tooling. The published code targets ES2022 and runs in any modern browser.
- React 18 or 19 for
swiperia-react, which declares React as a peer dependency.
Module formats
Every package ships both ECMAScript modules and CommonJS with matching type declarations, so all of these resolve correctly:
import { Swiper } from 'swiperia-js'; // ESMconst { Swiper } = require('swiperia-js'); // CommonJSTypeScript resolves the right declarations under node10, node16/nodenext and
bundler module resolution — no configuration needed.
TypeScript
Types ship inside the packages; there is no separate @types package to install.