SDK Documentation Help

Non-Modular Build Flavor

STRICH is distributed as an ES6 module, to be imported into your app via an import statement.

If you are running in an environment where you can not use ES6 modules, you can alternatively include the library via a <script> tag. We provide a non-modular build (strich-noesm.js) for this purpose.

Example: Loading the non-modular build from a CDN

<script src="https://cdn.jsdelivr.net/npm/@pixelverse/strichjs-sdk@latest/dist/strich-noesm.js"></script>

The non-modular builds registers the classes StrichSDK, BarcodeReader and SdkError under a global strich object, so instead of accessing importing StrichSDK and accessing it directly, you need to access it through the global:

// non-modular build, objects published under global 'strich' await strich.StrichSDK.initialize(...)
Last modified: 11 November 2024