npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

banglascript-transpiler

v1.0.0

Published

A BanglaScript to JavaScript transpiler.

Downloads

71

Readme

BanglaScript Transpiler

BanglaScript is a beginner-friendly toy programming language that translates Bangladeshi GEZ-Z slang into JavaScript.


Features

  • BanglaScript keywords for familiar and intuitive programming.
  • Transpiles BanglaScript code into executable JavaScript code.
  • Easy installation and usage via npm.
  • Optional syntax highlighting support in VS Code.

Installation

To install BanglaScript globally from npm, run the following command:

npm install -g banglascript-transpiler

This will make the banglascript CLI tool available globally on your system.


Usage

Setting Up BanglaScript in Your Project

  1. Create a BanglaScript file with the .bns extension (e.g., input.bns).

  2. Use the banglascript command to transpile the BanglaScript code into JavaScript:

    banglascript input.bns output.js
  3. Run the transpiled JavaScript file using Node.js:

    node output.js

Example Code

Here is a sample BanglaScript program saved as input.bns:

bro taka = 100;
funde discount(taka) {
  jodi (taka > 500) {
    bolchi("Boro taka:", taka - 50);
  } naile {
    bolchi("Chhoto taka:", taka - 10);
  }
  oi mama taka;
}

discount(taka);

arre bhai {
  bar-bar (bro i = 0; i < 5; i++) {
    bolchi(`Loop e ase: ${i}`);
  }
} bujhso na (err) {
  katlay porbi("Error:", err);
} jhamela shesh {
  bolchi("Shob thik ache");
}

Transpile and execute the file:

banglascript input.bns output.js
node output.js

Output:

Chhoto taka: 90
Loop e ase: 0
Loop e ase: 1
Loop e ase: 2
Loop e ase: 3
Loop e ase: 4
Shob thik ache

BanglaScript Keywords

The following table maps BanglaScript keywords to their JavaScript equivalents:

| BanglaScript | JavaScript | Description | | ---------------- | --------------- | --------------------------------- | | bro | let | Declaring variables | | mamu | const | Declaring constants | | funde | function | Function declaration | | jodi | if | Conditional if | | naile | else | Conditional else | | bolchi | console.log | Print to console | | bar-bar | for | For loop | | ghurtey | while | While loop | | oi mama | return | Return statement | | cooked | setTimeout | Set timeout | | baba re | throw | Throw error or exception | | arre bhai | try | Try block | | bujhso na | catch | Catch block | | jhamela shesh | finally | Finally block | | matha noshto | null | Null value | | besh besh | true | Boolean true | | na re bhai | false | Boolean false | | shuru theke | start | Loop or process start placeholder | | shesh porjonto | end | Loop or process end placeholder | | tui genius | console.info | Info log | | arektu boro | console.warn | Warning log | | katlay porbi | console.error | Error log |


Syntax Highlighting for BanglaScript

To enable syntax highlighting for BanglaScript in Visual Studio Code, install the BanglaScript Syntax Colors extension from the VS Code Marketplace. You can find it here.


Contributing

Contributions are welcome! If you find bugs or have suggestions, feel free to create an issue or submit a pull request.


License

This project is licensed under the ISC License.


Start writing in BanglaScript today and make coding fun and intuitive!