Registry / web-framework / esperskripto

esperskripto

JSON →
library0.0.2jsnpmunverified

A multilingual transpiler for JavaScript that allows writing code in Simplified Chinese (Mandarin) and Esperanto. v0.0.2 is the latest release as of early 2024, with sporadic maintenance. It transpiles Chinese or Esperanto keywords and built-in function names (e.g., 控制台.记录 -> console.log) to standard JavaScript. Unlike usual i18n tools, it directly renames keywords and identifiers, not just UI strings. Still experimental, with limited language support and no advanced features like module translation or type checking.

npm install esperskripto
INSTALL
IMPORT
SIG · ESPERSKRIPTO
E
esperskripto
web-frameworkjavascriptv0.0.2
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.

cli
npx esperskripto file.js
require('esperskripto')
This is a CLI tool, not a library. Install globally or use npx.

Transpiles a JavaScript file written in Esperanto or Chinese keywords to standard JavaScript using the CLI.

// Create a file 'test.eo' with Esperanto JavaScript: // funkcio provuIomete(){ // por(jen i=0;i<5;++i){ // konzolo.protokolu(i); // } // } // provuIomete(); // Then run: // npx esperskripto test.eo // Or for Chinese: // Create 'test.zh.js' with: // 函数 试一试(){ // 对于(让 甲=0;甲<5;++甲) { // 控制台.记录(甲); // } // } // 试一试(); // Run: npx esperskripto -l zh-cmn-Hans test.zh.js
esperskripto --version
Debug
Known issues
gotchaThe transpiler only handles built-in keywords and globals (like console, function, for, let). Custom identifiers and strings are left untranslated.
fix
Use only predefined keyword translations. Do not attempt to translate variable or function names automatically.
affects: >=0.0.1
gotchaThe file extension is not automatically detected; you must provide the correct language option via -l flag for Chinese, or Esperanto is default? Actually, Esperanto is default if no -l given.
fix
Always explicitly specify -l eo or -l zh-cmn-Hans to avoid ambiguity.
affects: >=0.0.1
breakingv0.0.2 may have breaking changes from v0.0.1; version range unspecific.
fix
Test translation output before relying on it.
affects: >=0.0.2
gotchaThe CLI transpiles a file in-place? No, it outputs to stdout. Overwrite must be done manually.
fix
Redirect output: esperskripto file.js > output.js
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'esperskripto'
CLI not installed globally or npx not used.
fix
npm install -g esperskripto or use npx esperskripto
SyntaxError: Unexpected token
Input file contains unrecognized keyword or invalid syntax for the transpiler.
fix
Ensure all keywords are from the supported language set (e.g., 函数, 对于, 控制台.记录 or funkcio, por, konzolo.protokolu). Check for typos.
Error: Unknown language 'fr'
Specified language code not supported.
fix
Use one of: eo (Esperanto) or zh-cmn-Hans (Simplified Chinese).
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
esperskripto — npm install esperskripto · libregistry