{"id":26794,"library":"banglascript-transpiler","title":"banglascript-transpiler","description":"A toy transpiler that converts BanglaScript (a beginner-friendly programming language using Bangladeshi GEZ-Z slang keywords) into JavaScript. Version 1.0.0 is the initial release. It translates BanglaScript keywords like 'bro' (let), 'funde' (function), 'jodi' (if), 'bolchi' (console.log) into standard JavaScript. Primarily educational or novelty use; not intended for production. No regular release cadence. Differentiator: it makes programming accessible to Bengali speakers by using localized keywords.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install banglascript-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add banglascript-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add banglascript-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used for CLI command parsing in the transpiler","package":"commander","optional":false}],"imports":[{"note":"Package might not export CommonJS; check package.json for module type. Prefer ESM import.","wrong":"const transpile = require('banglascript-transpiler');","symbol":"Default import of the transpiler function","correct":"import transpile from 'banglascript-transpiler';"},{"note":"CLI is 'banglascript' but npm package is 'banglascript-transpiler'. Use npx or global install.","wrong":"banglascript input.bns output.js (if not installed globally)","symbol":"CLI usage via npx","correct":"npx banglascript input.bns output.js"},{"note":"The API function name and parameters are assumed based on typical transpilers. Verify with package docs.","wrong":"","symbol":"Programmatic transpile API","correct":"import transpile from 'banglascript-transpiler'; const jsCode = transpile(banglaScriptCode);"}],"quickstart":{"code":"const fs = require('fs');\nconst transpile = require('banglascript-transpiler');\nconst inputCode = `\nbro taka = 100;\nfunde discount(taka) {\n  jodi (taka > 500) {\n    bolchi(\"Boro taka:\", taka - 50);\n  } naile {\n    bolchi(\"Chhoto taka:\", taka - 10);\n  }\n  oi mama taka;\n}\ndiscount(taka);\n`;\nconst outputCode = transpile(inputCode);\nconsole.log(outputCode);\n// Expected JS output includes variable declarations and function with if-else and console.log","lang":"javascript","description":"Transpile BanglaScript code to JavaScript using the programmatic API and log the result."},"warnings":[{"fix":"Use 'npx banglascript' or install globally with 'npm install -g banglascript-transpiler' and run 'banglascript'.","message":"The CLI command is 'banglascript', not 'banglascript-transpiler'. Running 'banglascript-transpiler input.bns' will fail.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Import the transpiler function: import transpile from 'banglascript-transpiler' or use CLI instead.","message":"The programmatic API is not documented; the module may not export a function as expected. Users may have to inspect the package internals.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use for learning or fun only. Do not rely on it for critical applications.","message":"BanglaScript is a toy language; it is not suitable for production. Using it in serious projects may lead to unexpected behavior or lack of support.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Check package.json for 'type': 'module'. Use ESM import syntax.","message":"The package uses CommonJS require in examples but may be ESM-only. Using require may fail.","severity":"deprecated","affected_versions":">=1.0.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 banglascript-transpiler' and ensure correct import: import transpile from 'banglascript-transpiler'","cause":"Package not installed or wrong import path.","error":"Error: Cannot find module 'banglascript-transpiler'"},{"fix":"Install globally: 'npm install -g banglascript-transpiler'. Or use npx: 'npx banglascript input.bns output.js'","cause":"CLI binary not in PATH; package not installed globally.","error":"bash: banglascript: command not found"},{"fix":"Check the actual export: e.g., import * as transpiler from 'banglascript-transpiler'. Refer to package source.","cause":"Default import may not yield a function; module might export differently.","error":"TypeError: transpile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}