Registry / arabjs

arabjs

JSON →
library0.0.6jsnpmunverified

ArabJs is a JavaScript transpiler that converts Arabic-script code into standard JavaScript, enabling programming in Arabic. Current version is 0.0.6 (released 2020), with low release cadence. Key differentiator: allows writing JavaScript-like code using Arabic keywords (e.g., 'داله' for function, 'اطبع' for print). It is a proof-of-concept tool with limited practical use, no TypeScript support, and no active development.

npm install arabjs
INSTALL
IMPORT
SIG · ARABJS
A
arabjs
javascriptv0.0.6
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.

default (run)
import arabJs from 'arabjs'
const arabJs = require('arabjs')
Package is ESM-only; CommonJS require will not work.
run function
arabJs.run(code)
arabJs(code)
The default export is an object with a run method, not a function.
version access
import arabJs from 'arabjs'; console.log(arabJs.version)
Version property available on default export.

Shows how to use ArabJs to run a simple Arabic script that defines a function and prints the result.

import arabJs from 'arabjs'; const code = ` داله جمع(س,ص) { الجواب س + ص } لنفرض النتيجة = جمع(2,3) اطبع.نص(النتيجة) `; arabJs.run(code); // Output: 5
arabjs --version
Debug
Known issues
gotchaPackage uses ESM only; CommonJS require will fail.
fix
Use import syntax instead of require.
affects: >=0.0.1
deprecatedPackage appears abandoned; no updates since 2020.
fix
Consider using alternatives or avoid for production.
affects: >=0.0.1
Errors
Common errors & fixes
SyntaxError: Cannot use import statement outside a module
Running ESM code in a CommonJS environment.
fix
Add 'type': 'module' to package.json or use .mjs extension.
TypeError: arabJs is not a function
Using arabJs as a function directly instead of calling arabJs.run().
fix
Use arabJs.run(code) instead of arabJs(code).
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
arabjs — npm install arabjs · libregistry