Guides

Installation

Main Walkthrough 1 of 25

Bun & Node.js

In server-side projects running on Bun or Node.js, the @mtkruto/node package can be used.

$ pnpm add @mtkruto/node

Deno & Web

  1. If you develop for Deno or develop in Deno, install MTKruto using the following command.
$ deno add jsr:@mtkruto/mtkruto
  1. If your Node.js project uses a framework (such as Next.js or SvelteKit) or a bundler (such as Parcel or Vite), install MTKruto using one of the following commands.
$ pnpm add jsr:@mtkruto/mtkruto

As an alternative, you can also use @mtkruto/browser from npm:

$ pnpm add @mtkruto/browser
  1. You can also import it directly from a CDN into your HTML file.
<!DOCTYPE html>
<html>
  <body>
    <script type="module">
      import { ... } from "https://cdn.jsdelivr.net/npm/@mtkruto/[email protected]/esm/mod.js";
    </script>
  </body>
</html>