npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

bhauji-js

v1.5.0

Published

Bhojpuri programming language transpiler and CLI runner

Readme


🌾 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 = 5 | const naam = 5 | Declare a constant | | maanle (x > 5) | if (x > 5) | If condition | | nahi_ta_phir (x < 2) | else if (x < 2) | Else if condition | | na_ta | else | Else block | | dekhi_ke(x) | switch(x) | Switch case | | agar (5): | case 5: | Case block | | jab_kucho_nahi | default | Default case | | bas_ho_gail | break | Break 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_badhi | continue | Continue loop | | wapis x | return x | Return 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 | .length | Array 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_ek | forEach | forEach method | | jholi | Object | JS object | | nulla | null | Null value | | naya | new | New instance | | dekha | typeof | Type check | | rok | throw | Throw error | | kosis kara | try | Try block | | pakad le | catch | Catch block | | akhri mein | finally | Finally 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 😄