{"id":24997,"library":"bhauji-js","title":"bhauji-js: Bhojpuri Programming Language Transpiler","description":"A novelty transpiler and CLI tool that converts Bhojpuri-language syntax into JavaScript. Version 1.5.0 provides a CLI runner for .bj files, translating desi keywords like 'kaha_bhauji' and 'batayi' into console.log and let respectively. It supports conditionals, loops, arrays, functions, and more. Differentiated by its humorous, cultural approach; not intended for serious production use. Release cadence is irregular, with occasional updates.","status":"active","version":"1.5.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","bhojpuri","cli","programming-language","transpiler","funny"],"install":[{"cmd":"npm install bhauji-js","lang":"bash","label":"npm"},{"cmd":"yarn add bhauji-js","lang":"bash","label":"yarn"},{"cmd":"pnpm add bhauji-js","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is ESM-only; use import syntax.","wrong":"const bhauji = require('bhauji-js')","symbol":"bhauji","correct":"import { bhauji } from 'bhauji-js'"},{"note":"run() executes a .bj string and returns console output.","wrong":"const { run } = require('bhauji-js')","symbol":"run","correct":"import { run } from 'bhauji-js'"},{"note":"Default export is the same as named export 'bhauji'; no default export exists.","wrong":"const bhauji = require('bhauji-js')","symbol":"default import","correct":"import bhauji from 'bhauji-js'"}],"quickstart":{"code":"import { run } from 'bhauji-js';\n\nconst input = `\nkaisan bhauji;\nbatayi naam = \"Duniya\";\nkaha_bhauji(\"Namaste \" + naam);\n`;\n\nconst result = run(input);\nconsole.log(result);\n// Expected output: Namaste Duniya\n","lang":"typescript","description":"Demonstrates transpiling a Bhojpuri snippet with variable declaration and console output."},"warnings":[{"fix":"Test thoroughly and refer to the command table in the README.","message":"Bhojpuri syntax does not map 1:1 to JavaScript; some edge cases may behave unexpectedly.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use standard JavaScript for serious projects.","message":"The package is a novelty tool; not designed for production use.","severity":"gotcha","affected_versions":"all"},{"fix":"Change 'import bhauji from...' to 'import { bhauji } from...'.","message":"In version 1.5.0, the default export 'bhauji' was removed in favor of named exports only.","severity":"breaking","affected_versions":"<=1.4.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g bhauji-js' or 'npm install bhauji-js'.","cause":"Package not installed or global installation missing.","error":"Error: Cannot find module 'bhauji-js'"},{"fix":"Ensure file extension is .bj and run via 'bhauji <file>.bj'.","cause":"Bhojpuri syntax not recognized; likely a .js file used instead of .bj.","error":"SyntaxError: Unexpected identifier 'naam'"},{"fix":"Use 'import { run } from 'bhauji-js''.","cause":"Incorrect import; default import used but run is named export.","error":"Error: run is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}