{"id":24978,"library":"banglascript","title":"BanglaScript","description":"BanglaScript is a transpiler that converts Bangla (Bengali) syntax into JavaScript, enabling native Bengali speakers to code in their mother tongue. Current stable version is 4.1.0, released with regular updates. It offers a CLI, REPL, project templates, caching, and full support for modern JavaScript features including async/await, classes, and modules. Differentiates from other language-localization projects by providing a complete toolchain (build, watch, eval) and TypeScript type definitions.","status":"active","version":"4.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/BengalEmpire/BanglaScript","tags":["javascript","bangla","bengali","banglascript","transpiler","compiler","bengali-programming","cli","typescript"],"install":[{"cmd":"npm install banglascript","lang":"bash","label":"npm"},{"cmd":"yarn add banglascript","lang":"bash","label":"yarn"},{"cmd":"pnpm add banglascript","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Use npx or global install; not a direct Node module import.","wrong":"node bjs run file.bjs","symbol":"bjs CLI","correct":"npx bjs run file.bjs"}],"quickstart":{"code":"npm install -g banglascript && bjs init my-project && cd my-project && echo 'ধ্রুবক নাম = \"দুনিয়া\"; লিখো(`হ্যালো ${নাম}!`);' > src/main.bjs && bjs run src/main.bjs","lang":"javascript","description":"Installs globally, creates a project, writes a simple BanglaScript file, and runs it using the CLI."},"warnings":[{"fix":"Rebuild all .bjs files with v4. Review generated JS for breaking changes like variable scoping.","message":"v4.0 changed transpiler output format; built JavaScript may differ from v3.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Use 'bjs run <file>' for eval-like behavior or 'bjs build' with stdin redirection.","message":"CLI commands 'bjs transpile' and 'bjs eval' are deprecated in v4.1.","severity":"deprecated","affected_versions":">=4.1.0"},{"fix":"Always use the predefined keyword map; refer to the README table.","message":"Async keywords like 'অ্যাসিঙ্ক' and 'অপেক্ষা_করো' must be used exactly as documented; typos may cause silent failures.","severity":"gotcha","affected_versions":"*"},{"fix":"Use '--translit' (default) to convert identifiers to transliterated Latin script for better tool compatibility.","message":"When using '--no-translit', Bangla identifiers are preserved but may cause issues with JavaScript tools that expect ASCII.","severity":"gotcha","affected_versions":"*"}],"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 banglascript' to install globally.","cause":"Package not installed or not globally linked.","error":"Error: Cannot find module 'banglascript'"},{"fix":"Use .bjs extension for BanglaScript files; avoid mixing syntaxes.","cause":"Mixing BanglaScript with plain JavaScript in the same file without proper extension.","error":"SyntaxError: Unexpected token"},{"fix":"Add '$(npm root -g)/bin' to PATH or use 'npx bjs'.","cause":"Global npm bin not in PATH.","error":"bjs: command not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}