{"id":26351,"library":"russian-js-transpiler","title":"Russian JavaScript Transpiler","description":"A transpiler (v1.0.1) that converts Russian-language JavaScript-like code into standard JavaScript, enabling Russian speakers to write programs using native keywords. Supports modern JS features including variables, control flow, loops, functions, classes, error handling, modules, and template literals. Provides a CLI tool and programmatic API. Extensible architecture with full TypeScript support. Requires Node >=14.0.0. Differentiators: comprehensive mapping of Russian keywords to JS, support for standard JS features, and TypeScript-first development.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/nike-17/rjs","tags":["javascript","transpiler","russian","compiler","language","translation"],"install":[{"cmd":"npm install russian-js-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add russian-js-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add russian-js-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"CLI argument parsing","package":"commander","optional":false}],"imports":[{"note":"ESM-only; named import, not default.","wrong":"const transpile = require('russian-js-transpiler').transpile","symbol":"transpile","correct":"import { transpile } from 'russian-js-transpiler'"},{"note":"Default export is a transpiler instance with a .transpile method and other utilities.","wrong":"import { default as rjs } from 'russian-js-transpiler'","symbol":"default","correct":"import rjs from 'russian-js-transpiler'"},{"note":"Named export for compiling from file path.","wrong":"","symbol":"compileFile","correct":"import { compileFile } from 'russian-js-transpiler'"}],"quickstart":{"code":"import { transpile } from 'russian-js-transpiler';\n\nconst russianCode = `\nфункция приветствовать(имя) {\n  вернуть \"Привет, \" + имя + \"!\";\n}\n`;\n\nconst jsCode = transpile(russianCode);\nconsole.log(jsCode);\n// Output:\n// function приветствовать(имя) {\n//   return \"Привет, \" + имя + \"!\";\n// }\n","lang":"typescript","description":"Demonstrates basic transpilation using the named `transpile` function."},"warnings":[{"fix":"Always use lowercase Russian keywords as shown in documentation.","message":"Russian keywords are case-sensitive; 'Переменная' (capitalized) will not be recognized as 'переменная'.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use named import `{ transpile }` or access `rjs.transpile`.","message":"The default export is an object, not a function. Attempting to call `rjs(code)` will throw 'rjs is not a function'.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Replace `translator(code)` with `transpile(code)`.","message":"Version 1.0.0 removed support for the `translator` function; use `transpile` instead.","severity":"breaking","affected_versions":">=1.0.0 <1.0.1"},{"fix":"Use `rjs -i input.rjs -o output.js`","message":"The `--output` CLI flag is deprecated in v1.0.1; use `--out` instead.","severity":"deprecated","affected_versions":"1.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install russian-js-transpiler` or check your import path.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'russian-js-transpiler'"},{"fix":"Use `import { transpile } from 'russian-js-transpiler'` or call `rjs.transpile(code)`.","cause":"Default import was used but called directly instead of accessing `.transpile`.","error":"TypeError: rjs is not a function"},{"fix":"Transpile the .rjs file using `rjs -i file.rjs -o file.js` then run `node file.js`.","cause":"Trying to run .rjs file directly with Node.js instead of transpiling first.","error":"SyntaxError: Unexpected token 'переменная'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}