lovelang-runtime
v1.0.0
Published
Cross-platform Lovelang CLI wrapper that downloads the correct binary from GitHub releases.
Downloads
18
Maintainers
Readme
lovelang-runtime
Cross-platform npm wrapper for the Lovelang interpreter.
YouTube: https://www.youtube.com/@clixiya
On install, this package detects your OS/CPU and downloads the matching Lovelang binary from GitHub releases.
If download is skipped during install (for example in CI), the lovelang command will auto-download the correct binary on first run.
Install
npm install -g lovelang-runtimeThen run:
lovelang --help
lovelang ./examples/01-romantic-hello.loveFrom any folder:
lovelang /full/path/to/project/examples/01-romantic-hello.loveHow It Works
postinstallresolves your platform (darwin,linux,win32) and arch (x64,arm64).- It builds a GitHub release URL for the right asset.
- It downloads the binary into
vendor/bin/inside this package. - The
lovelangbin script forwards your CLI args to that binary. - If the binary is missing at runtime, it is fetched automatically before executing your file.
Expected Release Asset Names
lovelang-darwin-x64lovelang-darwin-arm64lovelang-linux-x64lovelang-linux-arm64lovelang-win32-x64.exelovelang-win32-arm64.exe
Environment Variables
LOVELANG_GITHUB_OWNER(default:clixiya)LOVELANG_GITHUB_REPO(default:lovelang)LOVELANG_GITHUB_TAG(default:latest)LOVELANG_DOWNLOAD_BASE_URL(optional) : If set, installer uses<base-url>/<asset-name>directly.LOVELANG_GITHUB_TOKEN(optional) : Added asAuthorization: Bearer <token>for private/rate-limited downloads.LOVELANG_SKIP_DOWNLOAD=1: Skips postinstall download.LOVELANG_FORCE_DOWNLOAD=1: Re-downloads even if binary already exists.LOVELANG_BIN_PATH(runtime override) : Use a custom local binary path when runninglovelang.
Development
npm test
npm run cleanNotes
- This package is scaffolding for publishing/CI workflows.
- Release upload automation can be added in the next step when you ask to prepare for GitHub upload.
- For best user experience, keep GitHub release assets published for all supported targets listed above.
