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 🙏

© 2024 – Pkg Stats / Ryan Hefner

bro-lang

v3.0.1

Published

bro-lang is an interpreted programming language made for a discord bot called [Dora](https://github.com/hasan-bro-coder/Discord-Bot)

Downloads

36

Readme

bro-lang

bro-lang is an interpreted programming language made for a discord bot called Dora

bro-lang-logo

getting started

to compile bro code you can use:

npm install -g bro-lang
bro filename.bro

or

npx bro filename.bro

syntax

bro-lang is made for fun so I made its syntax look like a lot of programming language but bro-langs syntax is similar to javascript

your_favorite_language = "python"

if (your_favorite_language == "python"){
    say("try me bro")
}fi if(your_favorite_language == "bro"){
    say("your better ,stonger, faster")
}

and you can replace { with do and } with end also () are optional

variables

you can declare a variable with the var keyword

var i = 0;

or you can just remove the var keyword

i = 0;

Data Structures

there are 6 main data structures:

  • string
  • number
  • bool
  • objects
  • arrays
  • null

took me days to make

i = "string" # string
i = 0        # number
i = true     # bool
i = null     # null
i = {}       # object
i = []       # array

they all work the same as they work in js

statements

  • if statements:

    you can define if statements like this
    i = 1
    if (i > 0)do 
        say("its a positive number")
    end fi if( i == 0 ){ # remember there is no else its fi
        say("the number is 0")
    }fi{
        say("its a negative number")
    }
  • loops:

    you can define if statements like this
      i = 1
        loop(i < 100){
            say(i)
            i = i + 1
            if (i % 15 == 0) {
                say("fizzbuzz")
            }fi if(i % 3 == 0) {
                say("fizz")
            }fi if(i % 5 == 0) {
                say("buzz")
            }fi {say(i)}
        }
  • functions:

    fun sum(a,b){
        a + b
    }
    say(sum(1,1))

anonymous function: sum = _(a,b){ return a + b } say("sum")

new features coming soon 😉

Credits

Please give me a star ⭐

Created by hsn-bro-coder aka Hasan ☠