Dhurandar
raw JSON → 1.0.5 verified Fri May 01 auth: no javascript
Dhurandar is a lightweight, esoteric programming language compiler that transpiles Hinglish-based syntax to JavaScript. It uses fun keywords like 'oye sun' for variable declarations and 'hamzaKiDiary' for console output. Version 1.0.5 is the latest stable release; development appears sporadic with no clear release cadence. The package is primarily a novelty language for educational or entertainment purposes, not meant for production. It can be run via npx without installation.
Common errors
error Error: Unknown keyword: 'var' ↓
cause Standard JavaScript 'var' is not recognized; only 'oye sun' is allowed.
fix
Replace 'var' with 'oye sun' in your Dhurandar source.
error SyntaxError: Missing 'hamza ali mazari' header ↓
cause The compiler expects the first line of the file to be exactly 'hamza ali mazari'.
fix
Add 'hamza ali mazari' as the very first line of your .pakkimkc file.
error ReferenceError: hamzaKiDiary is not defined ↓
cause Using a function name other than 'hamzaKiDiary' for output; the language only supports that specific keyword.
fix
Use 'hamzaKiDiary' instead of 'console.log' or any other output function.
Warnings
gotcha All code must start with 'hamza ali mazari' or compilation fails. ↓
fix Include 'hamza ali mazari' as the first line of your Dhurandar source.
gotcha Variable declarations use 'oye sun' but reassignment uses 'oye sun' again; no 'let' or 'const' equivalent. ↓
fix Always use 'oye sun' for both declaration and assignment.
gotcha The package syntax-highlighted VS Code extension is optional and must be manually installed from a VSIX file. ↓
fix Download the VSIX from the GitHub releases and install via 'Install from VSIX...' in VS Code.
Install
npm install dhurandar yarn add dhurandar pnpm add dhurandar Imports
- compile wrong
const dhurandar = require('dhurandar')correctimport { compile } from 'dhurandar' - run wrong
import dhurandar from 'dhurandar'correctimport { run } from 'dhurandar'
Quickstart
import { run } from 'dhurandar';
const code = `
hamza ali mazari
oye sun a = 10
oye sun b = 20
oye sun sum = a + b
hamzaKiDiary("Total is: " + sum)
agar(a < b) {
hamzaKiDiary("B is bigger!")
}
`;
run(code);