Skip to content

Installing class-recipe

Terminal window
npm install @lynstack/class-recipe

Its one dependency is @lynstack/recipe.

The package is an ES module only. Bundlers and frameworks load it as it is. In a plain Node.js script, use import, and either set "type": "module" in your package.json or name the file .mjs or .mts.

With Tailwind CSS, set up your editor to complete and sort the classes in your recipes.

NeedsSupported
TypeScript5.4 or newer
RuntimesNode.js 16.9, Bun 1.0, Deno 2.0, or newer
BrowsersES2022: Chrome 93, Firefox 92, Safari 15.4, or newer
ModulesES modules only: import it, or require it in Bun or from Node.js 20.19, 22.12, or newer

Every change runs each package on the oldest and the newest Node.js, Bun, and Deno in this table, and compiles its types with the oldest and the newest TypeScript.