{"id":25913,"library":"lvskripts","title":"LVskripts","description":"LVskripts is a transpiler that converts code from a Latvian-language JavaScript syntax (LVskripts) to regular JavaScript, enabling programmers to write JavaScript using Latvian keywords (e.g., 'konstante' for 'const', 'ja' for 'if', 'printēt' for 'console.log'). Version 1.3.0 is the latest stable release; the library is in active development with a focus on educational/novelty use rather than production. It provides both Latvian-to-JS and JS-to-Latvian transpilation via a CLI tool. The package does not expose a programmatic API.","status":"active","version":"1.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/superkaplis/LVskripts","tags":["javascript","transpiler"],"install":[{"cmd":"npm install lvskripts","lang":"bash","label":"npm"},{"cmd":"yarn add lvskripts","lang":"bash","label":"yarn"},{"cmd":"pnpm add lvskripts","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package is primarily a CLI tool; programmatic API is not documented. ESM import may not work as expected.","wrong":"const lvskripts = require('lvskripts')","symbol":"default","correct":"import lvskripts from 'lvskripts'"}],"quickstart":{"code":"// Install globally\nnpm install -g lvskripts\n\n// Create a test file 'hello.lv' with Latvian JS:\n// konstante x = 10\n// ja (x > 5) { printēt(\"Liels\") }\n\n// Transpile to JavaScript:\nlvskripts -kompilet hello.lv\n\n// Or use short flag:\nlvskripts -k hello.lv\n\n// Reverse transpile from JS to Latvian:\nlvskripts -otradi hello.js","lang":"typescript","description":"Shows how to install the CLI globally and use two main commands: transpile Latvian JS to JS and reverse."},"warnings":[{"fix":"Use as a CLI only; run via 'lvskripts' command. For programmatic use, consider forking or using child_process.","message":"The package is a CLI tool with no documented programmatic API. Importing it as a Node module may result in unexpected behavior or errors.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Run 'lvskripts --help' for usage information in Latvian.","message":"CLI flags are in Latvian (e.g., -kompilet, -otradi); not translated to English. Use -h or --help to see available flags.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pin exact version in production or rely on CLI behavior.","message":"No versioning guarantees; breaking changes may occur in minor/patch releases. Review changelog before upgrading.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g lvskripts' and ensure npm global bin is in PATH.","cause":"Package not installed globally or not in PATH.","error":"lvskripts: command not found"},{"fix":"Transpile first using 'lvskripts -k input.lv' to generate JavaScript, then run with Node.","cause":"Attempting to run .lv file directly with Node without transpiling.","error":"Unexpected token: konstante"},{"fix":"Install locally: 'npm install lvskripts' or use CLI globally.","cause":"Importing the package in code without global install or local node_modules.","error":"Error: Cannot find module 'lvskripts'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}