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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lash-compiler

v0.10.0

Published

Compiles lash code to bash

Readme

Lash

Lash is a scripting language that compiles to pure bash with the goal of simplifying bash scripting.

Project description

It offers:

  • TypeScript like syntax
  • Static type checking
  • Full support of all bash features (e.g. pipe) in Version 1.0 ;)
  • Pain free scripting without adding extra dependencies to your target machine/container (assuming bash is pre-installed by default)

Current Status

(!) DO NOT YET USE LASH IN PRODUCTION (!)

Currently Lash has not reached version 1.0. Therefore, it does not support the full bash language, might include bugs and the language may change without further notice.

We are searching for contributors to help us reach version 1.0 ;)

Installation

For the latest version, run:

npm

npm install -g lash-compiler

yarn

yarn add global lash-compiler

Usage

To compile an input file use:

lash myscript.lsh

This will generate myscript.sh in the same folder the input file is located.

Command line options

You can also specify an output file explicitly:

lash myscript.lsh --out output.sh

To print the output to the console instead of a file use:

lash input.lsh --print

Syntax

The syntax will be familiar to everyone using TypeScript or Javascript.

var s = 1 + 2
s = 3
const h = "Hello "
var greet = h + "welt"
const f = 5.63
var c = (f + 3) < 10

function myFun(msg) {
	echo(msg)
}

if (s < 6-2 && c) {
	echo(greet)
}

for (var i = 1; i < 8; i++) {
	myFun(i)
}

This will generate the following output:

s=$(( 1 + 2 ))
s=3
declare -r h="Hello "
greet="${h}welt"
declare -r f=5.63
c=$([ $(echo "$f + 3 < 10" | bc -l) -eq 1 ]; echo $?)
function myFun {
	msg=$1
	echo $msg
}
if [ $s -lt $(( 6 - 2 )) ] && [ $c -eq 0 ]; then
	echo $greet
fi
for (( i=1; $i < 8; i++ )); do
	myFun $i
done

Please be aware that lash is still in development and does not support all desired features yet. For example you cannot yet define an else branch for if statements, use comments or make use of the pipe operator.

Contribute

There are many ways you can contribute to lash:

  • report bugs
  • get involved into the language design discussions
  • clone the repo and start coding

For a detailed description on how to get invloved take a look at CONTRIBUTING.md

Versioning

We use Semantic Versioning. For the versions available, see the tags on this repository.

Authors

  • Christian Nywelt - Initial work and maintainer - crainsaw

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.