Notes / Note 02
How to install any Kaab package
One command, one import. A short walk through npm, pnpm and bun.
Every Kaab package installs the same way: one command, then one import. This guide uses @kaab/normalizer as the example.
1. Pick your package manager
A package manager is a program that downloads code for you. Use the one your project already uses. If you are not sure, use npm. It comes with Node.js.
All three commands do the same thing: they download the package and add it to your package.json file.
2. Import it
Put the import at the top of the file where you need it.
import { normalize } from "@kaab/normalizer";
normalize("SOO dhawoow");
// "soo dhawoow"Kaab packages are ESM only. This means you load them with import, not with require.
3. Check the licence
Each package page shows its licence at the top. Read what each licence allows before you ship.
Other packages
Replace @kaab/normalizer with the name of the package you want. You find every name on the Packages page.