Socket
Book a DemoInstallSign in
Socket

bhauji-js

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bhauji-js

Bhojpuri programming language transpiler and CLI runner

latest
npmnpm
Version
1.5.0
Version published
Maintainers
0
Created
Source

🙏 भौजी JS (Bhauji Javascript) 🐄

🌾 A Bhojpuri-based funny programming language CLI where kaha_bhauji("Hello") becomes console.log("Hello")!
🤓 Write JavaScript in pure desi Bhojpuri — Bhauji-style!

📦 Install Kare Babua

npm install -g bhauji-js

🏃 Kaise Chalayin? (Usage)

```bash
bhauji <filename>.bj
# or
bhojpuri <filename>.bj

---

## 👀 Ek Example

Create a file called `hello.bj`:

```bj
kaisan bhauji;
batayi naam = "Duniya";
kaha_bhauji("Namaste " + naam);

Run it:

bhauji hello.bj

Output:

Namaste Duniya

🔧 Kuch Bhojpuri Commands

🐮 Bhojpuri Syntax🧠 JavaScript Equivalent📋 Description
kaha_bhauji(x)console.log(x)Print to console
bhauji_suni_ta(x)prompt(x)Take input from user
bhauji_dikhai_ta(x)document.write(x)Write to document
batayi naam = "Ram"let naam = "Ram"Declare a variable
pakki_bat naam = 5const naam = 5Declare a constant
maanle (x > 5)if (x > 5)If condition
nahi_ta_phir (x < 2)else if (x < 2)Else if condition
na_taelseElse block
dekhi_ke(x)switch(x)Switch case
agar (5):case 5:Case block
jab_kucho_nahidefaultDefault case
bas_ho_gailbreakBreak statement
ginti_se(init; cond; step)for(init; cond; step)For loop
jabahu_tak (x < 10)while (x < 10)While loop
kari { ... } phir_dhekhi(x)do { ... } while(x)Do...while loop
age_badhicontinueContinue loop
wapis xreturn xReturn value
kam_kar fn(x)function fn(x)Function declaration
kam_kar (x) { ... }function(x) { ... }Anonymous function
kam_kar fn(x) {const fn = function(x) {Assign function to const
kam_dekh fn(x)fn(x)Call a function
awa_jara fn(x)fn(x)Call a function
jhund(a, b, c)Array.of(a, b, c)Create array
jhund[][]Empty array
.theshi_dei(x).push(x)Add item to array
.nikal_dei().pop()Remove item from end
.lambai.lengthArray length
.rup_dei(x).map(x)Map over array
.chantt_dei(x).filter(x)Filter array
.khoj_dei(x).find(x)Find item in array
.saja_dei(x).reduce(x)Reduce array
har_ekforEachforEach method
jholiObjectJS object
nullanullNull value
nayanewNew instance
dekhatypeofType check
rokthrowThrow error
kosis karatryTry block
pakad lecatchCatch block
akhri meinfinallyFinally block

🧪 Sample Code (kaisan bhauji style)

kaisan bhauji;

batayi score = 85;
pakki_bat naam = "Munna";
kaha_bhauji("Parnaam ji bhauji!");

kam_kar badhai(kauno_naam) {
  kaha_bhauji("Badhai ho, " + kauno_naam + "!");
  wapis "Kaam pura bhail";
}

kam_dekh badhai(naam);

maanle (score > 90) {
  kaha_bhauji("Topper baa!");
} nahi_ta_phir (score > 80) {
  kaha_bhauji("Achha kiya babua!");
} na_ta {
  kaha_bhauji("Aur mehnat kara!");
}

dekhi_ke(score) {
  agar (100):
    kaha_bhauji("Perfect score!");
    bas_ho_gail;
  agar (85):
    kaha_bhauji("Bahut badiya!");
    bas_ho_gail;
  jab_kucho_nahi:
    kaha_bhauji("Dekhiye bhauji, kuch aur number mile.");
}

pakki_bat student = jhund("Munna", "Guddu", "Bablu");
student.har_ek(kam_kar(nam) {
  kaha_bhauji("Student baa: " + nam);
});

batayi sankhya =[1, 2, 3, 4, 5, 6, 7, 8, 9, 0];

batayi dugna = sankhya.rup_dei(kam_kar(n) {
  wapis n * 2;
});

batayi teen = sankhya.khoj_dei(kam_kar(n) {
  wapis n === 3;
});

kaha_bhauji(dugna);
kaha_bhauji(teen);

batayi bara = sankhya.chantt_dei(kam_kar(n) {
  wapis n > 3;
});

batayi total = sankhya.saja_dei(kam_kar(p, c) {
  wapis p + c;
});

kosis kara {
  maanle (dekha(naam) === "string") {
    kaha_bhauji("Naam ekdam sahi ba: " + naam);
  }
  rok "Galti pakad le gail!";
} pakad le (err) {
  kaha_bhauji("Pakad le gail: " + err);
} akhri mein {
  kaha_bhauji("Bhauji, ab kaam pura bhail.");
}

batayi aadmi = {
  naam: "Ram",
  umar: 25,
  bol: kam_kar() {
    kaha_bhauji("Hamaar naam " + aadmi.naam + " baa, aur umar " + aadmi.umar + " saal baa");
  }
};

aadmi.bol();

🧠 Future Scope (Sapna)

  • ✅ Full error mapping to Bhojpuri .bj file (done)
  • 🚧 Bhojpuri function chaining
  • 🚧 Syntax highlighting plugin for VSCode
  • 🚧 Bhauji Linter (yes, seriously 😆)
  • 🚧 Support for modules: bhauji_se_import kara

🤝 Contribute Kare Chahiye?

  • Fork karo, npm link karo, test karo!
  • Bhojpuri translation improvements, naya syntax, aur meme-driven updates welcome.

👑 Creator

Made with ❤️ by Bhauji ke fan — \Biswajeet Mishra

"Code likho desi mein, JavaScript chalai Bhauji!"

📜 License

MIT License — use, break, remix, aur Bhauji ko yaad karo 😄

🌼 Bhauji bolti: 'Code likh babua, duniya jeet jaiba!' 🌼

Keywords

bhojpuri

FAQs

Package last updated on 25 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts