Registry / serialization / bhauji-js

bhauji-js

JSON →
library1.5.0jsnpmunverified

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.

npm install bhauji-js
INSTALL
IMPORT
SIG · BHAUJI-JS
B
bhauji-js
serializationjavascriptv1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bhauji
import { bhauji } from 'bhauji-js'
const bhauji = require('bhauji-js')
Package is ESM-only; use import syntax.
run
import { run } from 'bhauji-js'
const { run } = require('bhauji-js')
run() executes a .bj string and returns console output.
default import
import bhauji from 'bhauji-js'
const bhauji = require('bhauji-js')
Default export is the same as named export 'bhauji'; no default export exists.

Demonstrates transpiling a Bhojpuri snippet with variable declaration and console output.

import { run } from 'bhauji-js'; const input = ` kaisan bhauji; batayi naam = "Duniya"; kaha_bhauji("Namaste " + naam); `; const result = run(input); console.log(result); // Expected output: Namaste Duniya
bhauji-js --version
Debug
Known issues
gotchaBhojpuri syntax does not map 1:1 to JavaScript; some edge cases may behave unexpectedly.
fix
Test thoroughly and refer to the command table in the README.
affects: >=1.0.0
gotchaThe package is a novelty tool; not designed for production use.
fix
Use standard JavaScript for serious projects.
affects: all
breakingIn version 1.5.0, the default export 'bhauji' was removed in favor of named exports only.
fix
Change 'import bhauji from...' to 'import { bhauji } from...'.
affects: <=1.4.0
Errors
Common errors & fixes
Error: Cannot find module 'bhauji-js'
Package not installed or global installation missing.
fix
Run 'npm install -g bhauji-js' or 'npm install bhauji-js'.
SyntaxError: Unexpected identifier 'naam'
Bhojpuri syntax not recognized; likely a .js file used instead of .bj.
fix
Ensure file extension is .bj and run via 'bhauji <file>.bj'.
Error: run is not a function
Incorrect import; default import used but run is named export.
fix
Use 'import { run } from 'bhauji-js''.
Upgrade
Version history
1.5.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
1
Resources
bhauji-js — npm install bhauji-js · libregistry