FJAS Transpiler

raw JSON →
0.0.2-alpha.7 verified Fri May 01 auth: no javascript

FJAS (Friendly JavaScript Alternative Syntax) is a programming language transpiler that converts a human-readable, verbose syntax into JavaScript. Current version 0.0.2-alpha.7 is experimental and not stable. Release cadence is irregular as it is in early alpha. Key differentiators include a highly English-like syntax intended for learning or fun, with a CLI for transpiling and running .fjas files. However, it is alpha software, lacks documentation, and should not be used in production.

error Error: Cannot find module 'fjas'
cause Installed locally but not globally.
fix
Install globally: npm i -g fjas
error fjas: command not found
cause Global install path not in PATH.
fix
Ensure npm global bin directory is in PATH, or use npx fjas.
gotcha Alpha software with breaking changes between versions
fix Pin exact version if using in pipelines.
deprecated No programmatic API; only CLI usage is supported
fix Use child_process to invoke CLI.
npm install fjas
yarn add fjas
pnpm add fjas

Install FJAS globally, create a .fjas file with human-like syntax, transpile or run it via CLI.

// Install globally
npm i -g fjas

// Create hello.fjas with content:
private initialize function hello start
    call object console function log with argument "Hello," and "World!".
end

call function hello.

// Transpile to JS:
fjas transpile hello.fjas -o hello.js

// Or run directly:
fjas run hello.fjas