Installation
How to install thor-devkit.js in order to use it with TypeScript or Javascript.
If using TypeScript follow the NPM installation steps, for JavaScript follow the CommonJS (CJS) installation steps.
Should you wish to implement this in a pure JavaScript project, it is recommended to use CommonJS (CJS) imports. Potential complications might arise with ES Module (ESM) imports.
NPM
Upon installation, you may utilize the subsequent code snippet to verify the proper functioning within your TypeScript project:
CJS
Set "commonjs" type in `package.json` file:
Use require instead of import:
Last updated