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 🙏

© 2026 – Pkg Stats / Ryan Hefner

hindicode

v1.0.3

Published

Run JavaScript with Hindi keywords

Readme

HindiCode - हिंदी में जावास्क्रिप्ट लिखें! 🚀

परिचय

HindiCode एक अनोखा NPM पैकेज है जो आपको हिंदी में जावास्क्रिप्ट लिखने की सुविधा देता है। यह कोड को रन-टाइम पर हिंदी से जावास्क्रिप्ट में परिवर्तित करता है ताकि आप JavaScript के कीवर्ड्स हिंदी में लिख सकें!

🔹 दृष्टांत:

स्थिर x = 10;
अगर (x > 5) {
    दिखाओ("x बड़ा है!");
} अन्यथा {
    दिखाओ("x छोटा है!");
}

परिवर्तित जावास्क्रिप्ट कोड:

const x = 10;
if (x > 5) {
    console.log("x बड़ा है!");
} else {
    console.log("x छोटा है!");
}

📌 विशेषताएँ

हिंदी में कोडिंग: जावास्क्रिप्ट के कीवर्ड्स हिंदी में!
रन-टाइम ट्रांसपाइलर: .hindi.js फ़ाइल को डायरेक्ट रन करें।
स्ट्रिंग्स सुरक्षित: कोड में लिखे हुए टेक्स्ट को अनछुए रखता है।
सिंपल सेटअप: बस इंस्टॉल करें और उपयोग करें!


🔧 इंस्टॉलेशन

npm install -g hindicode

🚀 उपयोग कैसे करें?

1️⃣ हिंदी कोड लिखें

.hindi.js फाइल बनाएं और हिंदी में जावास्क्रिप्ट लिखें:

// test.hindi.js
स्थिर संख्या = 42;
दिखाओ("संख्या है:", संख्या);

कार्य जोड़ो(क, ख) {
    लौटाओ क + ख;
}

दिखाओ("जोड़:", जोड़ो(5, 7));

2️⃣ सीधे चलाएँ


node test.hindi.js
or
node hindicode test.hindi.js


✅ आउटपुट:

संख्या है: 42 जोड़: 12


---

## 🔍 कैसे काम करता है?
**HindiCode** रन-टाइम पर `.hindi.js` फ़ाइल को लोड करता है और उसमें लिखे गए **हिंदी कीवर्ड्स को जावास्क्रिप्ट में** बदलकर उसे रन करता है।

```javascript
require.extensions[".hindi.js"] = function (module, filename) {
    let content = fs.readFileSync(filename, "utf8").trim();
    content = translateHindiJS(content);
    module._compile(content, filename);
};

📖 हिंदी से जावास्क्रिप्ट कीवर्ड्स मैपिंग

| हिंदी | जावास्क्रिप्ट | |-----------|------------------| | अगर | if | | अन्यथा | else | | दिखाओ | console.log | | कार्य | function | | लौटाओ | return | | चलाओ | for | | जबतक | while | | नया | let | | स्थिर | const | | परिभाषा | var | | सही | true | | गलत | false |


💖 सहयोग करें!

अगर आपको HindiCode पसंद आया हो, तो हमारे प्रोजेक्ट को सपोर्ट करें!
👉 डोनेट करें - Patreon


📜 लाइसेंस

यह प्रोजेक्ट MIT लाइसेंस के अंतर्गत जारी किया गया है।
आप इसे फ्री में उपयोग कर सकते हैं, लेकिन इसका सही उपयोग करें! 😊


🚀 योगदान करें

अगर आपके पास कोई सुझाव या नया फ़ीचर जोड़ना चाहते हैं, तो GitHub पर PR भेजें!
Happy Coding! ❤️

HindiCode - Write JavaScript in Hindi! 🚀

Introduction

HindiCode is an NPM package that allows you to write JavaScript in Hindi. It transpiles Hindi keywords into JavaScript at runtime, enabling you to code in Hindi seamlessly!

🔹 Example:

स्थिर x = 10;
अगर (x > 5) {
    दिखाओ("x बड़ा है!");
} अन्यथा {
    दिखाओ("x छोटा है!");
}

Transpiled JavaScript:

const x = 10;
if (x > 5) {
    console.log("x बड़ा है!");
} else {
    console.log("x छोटा है!");
}

📌 Features

Code in Hindi: Use Hindi keywords instead of JavaScript ones.
Runtime Transpiler: Run .hindi.js files directly.
String Protection: Keeps your string content untouched.
Simple Setup: Install and start using immediately.


🔧 Installation

npm install -g hindicode

🚀 How to Use?

1️⃣ Write Hindi Code

Create a .hindi.js file and write JavaScript using Hindi keywords:

// test.hindi.js
स्थिर संख्या = 42;
दिखाओ("संख्या है:", संख्या);

कार्य जोड़ो(क, ख) {
    लौटाओ क + ख;
}

दिखाओ("जोड़:", जोड़ो(5, 7));

2️⃣ Run Directly

node test.hindi.js
or
node hindicode test.hindi.js

Output:

संख्या है: 42  
जोड़: 12  

🔍 How Does It Work?

HindiCode hooks into Node.js and transpiles Hindi keywords into JavaScript at runtime before execution.

require.extensions[".hindi.js"] = function (module, filename) {
    let content = fs.readFileSync(filename, "utf8").trim();
    content = translateHindiJS(content);
    module._compile(content, filename);
};

📖 Hindi to JavaScript Keyword Mapping

| Hindi | JavaScript | |------------|--------------| | अगर | if | | अन्यथा | else | | दिखाओ | console.log | | कार्य | function | | लौटाओ | return | | चलाओ | for | | जबतक | while | | नया | let | | स्थिर | const | | परिभाषा | var | | सही | true | | गलत | false |


💖 Support Us!

If you like HindiCode, consider supporting the project!
👉 Donate on Patreon


📜 License

This project is released under the MIT License.
Feel free to use it responsibly! 😊


🚀 Contribute

Have suggestions or want to add new features? Submit a PR on GitHub!
Happy Coding! ❤️