Write in Humal.
Get JavaScript.

Humal is a programming language with human-readable syntax that uses indentation (like Python) and compiles directly to JavaScript (supporting both ESM and CommonJS standards).

main.hum
let age = 20

if age >= 18
    print "Adult"
else
    print "Underage"

Humal -> JavaScript

The same code, less syntactic noise. Delivering clarity and simplicity.

app.hum
let score = 75
if score >= 90
    print "Excellent"
elif score >= 70
    print "Good"
elif score >= 50
    print "Pass"
else
    print "Fail"
→
app.js
let score = 75

if (score >= 90) {
  console.log("Excellent")
} else if (score >= 70) {
  console.log("Good")
} else if (score >= 50) {
  console.log("Pass")
} else {
  console.log("Fail")
}

Why Humal

Human-readable syntax

The code reads naturally and is not cluttered with unnecessary characters.

Fast compilation

Humal compiles to JavaScript without a heavy intermediate structure. Benchmark

ESM and CommonJS

A choice of both popular module formats.

VS Code

Support for .hum files and syntax highlighting

npm

JavaScript libraries can be used in Humal projects.

Quick and easy start

Thanks to built-in indentation and the absence of unnecessary clutter, Humal syntax is quite easy to read and understand.

Installation

Three steps, and you can write on Humal.

01

Install the compiler

npm install -g @qvelop444/humal
02

Create a main.hum file

print "Hello World!"
03

Run

humal main.hum