Skip to content

Getting Started

Prerequisites

  • Node.js 24+ (or Deno)
  • A JavaScript or TypeScript workspace

Quick Start

The easiest way to get started is with init, which installs Moniq and creates a starter configuration.

bash
npx @udohjeremiah/moniq init
bash
pnpm dlx @udohjeremiah/moniq init
bash
yarn dlx @udohjeremiah/moniq init
bash
bun x @udohjeremiah/moniq init
bash
deno run -A npm:@udohjeremiah/moniq init

Manual Installation

Install Moniq in your workspace root.

bash
npm install -D @udohjeremiah/moniq
bash
pnpm add -D -w @udohjeremiah/moniq
bash
yarn add -D @udohjeremiah/moniq
bash
bun add -D @udohjeremiah/moniq
bash
deno add -D npm:@udohjeremiah/moniq

Create a moniq.config.{ts,js,mjs,cjs,mts,cts} file in the workspace root.

ts
import { defineConfig } from "@udohjeremiah/moniq";

export default defineConfig({
  scripts: {
    build: { command: "tsdown" },
    lint: { command: "eslint ." },
  },
});

Run Moniq

Run Moniq from the workspace root.

bash
npx moniq check
bash
pnpm moniq check
bash
yarn moniq check
bash
bun run moniq check
bash
deno run -A npm:@udohjeremiah/moniq check

If every policy passes, Moniq exits successfully.

Otherwise, it reports every policy violation found in your workspace.

Next Steps

Released under the MIT License.