Installation
Install and set up Denji in your React project
Install Package
Install Denji as a dev dependency:
npm install -D denjiInitialize Project
Run the init command to set up config and template:
denji init --framework reactThis creates:
denji.json- Configuration filesrc/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 hiddenAvailable options:
--output <path>- Output path--output-type <type>- Output type (fileorfolder, defaults tofile)--framework react- Target framework--typescript- Enable TypeScript (default: true)--a11y <strategy>- Accessibility strategy
Verify Installation
Check that Denji is installed correctly:
denji --versionYou should see the installed version number.