HinJS CLI (v0.3.0) is an experimental transpiler that converts .hjs files written with Hindi keywords into standard JavaScript. It acts as a preprocessor, replacing keywords like 'rakho', 'kaam', 'agar', 'likho' with their JavaScript equivalents. Built on top of Babel, it supports single file and directory compilation, generates source maps, and is installable via npm. Unlike full-language transpilers, HinJS is a simple keyword substitution layer, making it lightweight but limited in scope. Release cadence is irregular; breaking changes may occur between minor versions. Primarily designed for educational or playful use, not production.
npm install hinjs-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global install, creation of a .hjs file with Hindi keywords, transpilation to JS, and viewing the output.
Lock version to exact minor; test transpiled output after upgrades.
Use 'while' keyword or standard JS loops in .hjs files for stability.
Use external file watchers (e.g., nodemon) with --delay flag to trigger rebuilds.
Organize .hjs source files in a dedicated folder (e.g., src/) and avoid placing non-project files there.
Use unique file names or run per-directory.
Run 'npm install @babel/core' in your project.
Use 'hinjs src -d dist' or 'hinjs src --out-dir dist'. Do not use '--output-dir'.
Ensure proper spacing: 'sthir greeting = "Hello";'. Check that all keywords are correctly spelled (e.g., 'vaps' instead of 'lautao').
The output file uses 'console.log'; ensure your environment supports it (Node.js or modern browser).