{"id":25066,"library":"chavascript","title":"ChavaScript","description":"ChavaScript is a language transpiler (v0.1.3) that translates Hebrew-based syntax into JavaScript. It exposes parse, transpile, and run functions using acorn under the hood. Unlike alternatives like HebML or other multilingual programming languages, ChavaScript focuses on a minimal, intuitive mapping of keywords to JavaScript constructs. The package is experimental and has a low release cadence.","status":"active","version":"0.1.3","language":"javascript","source_language":"en","source_url":"https://github.com/ChavaScript/chavascript","tags":["javascript"],"install":[{"cmd":"npm install chavascript","lang":"bash","label":"npm"},{"cmd":"yarn add chavascript","lang":"bash","label":"yarn"},{"cmd":"pnpm add chavascript","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM import pattern; CJS require works but is not recommended for future versions.","wrong":"const chavascript = require('chavascript')","symbol":"chavascript","correct":"import * as chavascript from 'chavascript'"},{"note":"Named export available for ESM.","wrong":"const { parse } = require('chavascript')","symbol":"parse","correct":"import { parse } from 'chavascript'"},{"note":"Named export for transpiling ChavaScript to JavaScript.","wrong":"","symbol":"transpile","correct":"import { transpile } from 'chavascript'"}],"quickstart":{"code":"import { parse, transpile, run } from 'chavascript';\n\nconst code = `\nיכולת אחד() {\n   יהי א = 12;\n   בקרה.תעד(א);\n}\nאחד();\n`;\n\n// Parse into AST\nconst ast = parse(code);\nconsole.log('AST:', JSON.stringify(ast, null, 2));\n\n// Transpile to JavaScript\nconst js = transpile(code);\nconsole.log('JS:', js);\n\n// Execute and see output\nrun(code);","lang":"typescript","description":"Demonstrates parse, transpile, and run with a Hebrew-based ChavaScript example."},"warnings":[{"fix":"Only use acorn options that are documented: ecmaVersion, sourceType, locations, etc.","message":"Options passed to parse are forwarded to acorn; unsupported acorn options may cause errors.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use ESM import syntax instead.","message":"The require('chavascript') CommonJS pattern may be removed in future versions.","severity":"deprecated","affected_versions":">=0.1.3"},{"fix":"Ensure your runtime supports Unicode identifiers (Node.js 12+).","message":"ChavaScript transpiles to JavaScript, but variable names are not transliterated (e.g., Hebrew identifiers remain).","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Double-check spelling of Hebrew keywords like 'יכולת' (function) and 'יהי' (let).","cause":"ChavaScript code has a typo in Hebrew keyword.","error":"SyntaxError: Unexpected token"},{"fix":"Use default import: const chavascript = require('chavascript'); chavascript.parse(...). Or switch to ESM.","cause":"Using named import incorrectly with CJS require.","error":"TypeError: parse is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}