Registry / serialization / chavascript

chavascript

JSON →
library0.1.3jsnpmunverified

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.

npm install chavascript
INSTALL
IMPORT
SIG · CHAVASCRIPT
C
chavascript
serializationjavascriptv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

chavascript
import * as chavascript from 'chavascript'
const chavascript = require('chavascript')
ESM import pattern; CJS require works but is not recommended for future versions.
parse
import { parse } from 'chavascript'
const { parse } = require('chavascript')
Named export available for ESM.
transpile
import { transpile } from 'chavascript'
Named export for transpiling ChavaScript to JavaScript.

Demonstrates parse, transpile, and run with a Hebrew-based ChavaScript example.

import { parse, transpile, run } from 'chavascript'; const code = ` יכולת אחד() { יהי א = 12; בקרה.תעד(א); } אחד(); `; // Parse into AST const ast = parse(code); console.log('AST:', JSON.stringify(ast, null, 2)); // Transpile to JavaScript const js = transpile(code); console.log('JS:', js); // Execute and see output run(code);
Debug
Known issues
gotchaOptions passed to parse are forwarded to acorn; unsupported acorn options may cause errors.
fix
Only use acorn options that are documented: ecmaVersion, sourceType, locations, etc.
affects: >=0.1.0
deprecatedThe require('chavascript') CommonJS pattern may be removed in future versions.
fix
Use ESM import syntax instead.
affects: >=0.1.3
gotchaChavaScript transpiles to JavaScript, but variable names are not transliterated (e.g., Hebrew identifiers remain).
fix
Ensure your runtime supports Unicode identifiers (Node.js 12+).
affects: >=0.1.0
Errors
Common errors & fixes
SyntaxError: Unexpected token
ChavaScript code has a typo in Hebrew keyword.
fix
Double-check spelling of Hebrew keywords like 'יכולת' (function) and 'יהי' (let).
TypeError: parse is not a function
Using named import incorrectly with CJS require.
fix
Use default import: const chavascript = require('chavascript'); chavascript.parse(...). Or switch to ESM.
Upgrade
Version history
0.1.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
chavascript — npm install chavascript · libregistry