UNPKG

@paydock/client-sdk

Version:

Paydock client sdk

17 lines (14 loc) 830 B
Our NPM package is compatible with all package managers (e.g., `npm`, `yarn`, `pnpm`, `bun`). Using `npm` the following command would add the Client SDK as a production dependency. ```bash npm install @paydock/client-sdk ``` After installation is complete, if you are developing in NodeJS environments or using tools that expect your JavaScript code to be in CJS format (e.g., Jest, Karma, RequireJS, Webpack), you can import the Client SDK using CommonJS modules. For these environments the UMD format (`@paydock/client-sdk/bundles/widget.umd.js`) can also be used as a fallback. Alternatively, in case you are developing in projects that have access to modern bundlers such as Vite or others (e.g., SPA libs or SSR Metaframeworks), you can import the Client SDK features using ESM through named imports or namespaced imports.