Denji

Installation

Install and set up Denji in your React project

Install Package

Install Denji as a dev dependency:

npm install -D denji

Initialize Project

Run the init command to set up config and template:

denji init --framework react

This creates:

  • denji.json - Configuration file
  • src/icons.tsx - Icons template file (or your custom output path)

Custom Initialization

You can customize initialization with flags:

denji init --framework react --output ./src/components/icons.tsx --a11y hidden

Available options:

  • --output <path> - Output path
  • --output-type <type> - Output type (file or folder, defaults to file)
  • --framework react - Target framework
  • --typescript - Enable TypeScript (default: true)
  • --a11y <strategy> - Accessibility strategy

Verify Installation

Check that Denji is installed correctly:

denji --version

You should see the installed version number.

Next Steps

On this page