Registry / brocode-cli

brocode-cli

JSON →
library2.0.6jsnpmunverified

A toy compiler for the BroCode programming language that allows writing code using Hindi-style syntax. Version 2.0.6 is the current release; the project appears to be in active development with no clear release cadence. It differentiates itself by making programming accessible to Hindi speakers through familiar syntax (e.g., 'bro maanle' for variable declaration) and includes DOM manipulation and debug mode. The package primarily targets educational/fun use, not production systems.

npm install brocode-cli
INSTALL
IMPORT
SIG · BROCODE-CLI
B
brocode-cli
javascriptv2.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

brocode CLI
npx brocode your-file.bc
npx brocode-cli your-file.bc
The CLI command is 'brocode', not 'brocode-cli'. Use 'npx brocode@latest' to run without global install.
global install
npm install -g brocode-cli@latest
npm install -g brocode
The package name is 'brocode-cli' on npm. Global install is required for direct 'brocode' command.

Creates a factorial program using BroCode syntax and runs it with the brocode CLI.

// hello.bc bro function FACTORIAL(n) { bro maanle fact hai 1; bro maanle i hai 1; bro jbb tk (i <= n) hai { bro maanle fact hai fact * i; i++; } bro dikha de("Factorial of " + n + " is: " + fact); } FACTORIAL(5);
brocode --version
Debug
Known issues
gotchaCLI command is 'brocode', not 'brocode-cli'.
fix
Use 'brocode' as the command. Example: 'brocode file.bc'.
affects: all
gotchaGlobal install required for standalone 'brocode' command.
fix
Run 'npm install -g brocode-cli@latest' first, or use 'npx brocode'.
affects: all
gotchaDOM scripting requires adding a specific script tag in HTML head.
fix
Add '<script src="https://brocode-cli.vercel.app/api/ajj-kuch-tufani-krte-hai"></script>' to <head> and use '<bro-script>' tag.
affects: >=2.0.0
Errors
Common errors & fixes
Command not found: brocode
Package not installed globally or not in PATH.
fix
Install globally: 'npm install -g brocode-cli@latest' then run 'brocode'.
Cannot find module 'brocode-cli'
Using 'brocode-cli' as a command instead of 'brocode'.
fix
Use 'npx brocode' or 'brocode' after global install.
Upgrade
Version history
2.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
brocode-cli — npm install brocode-cli · libregistry