kerl-kpi
v0.1.1
Published
Package manager for the Kerl language
Downloads
296
Readme
kpi — Kerl Package Index
Package manager for the Kerl language.
Packages are GitHub repositories — no central registry needed.
Installation
npm install -g kerl-kpiUsage
kpi -i kerl-lang/http-server # install latest
kpi -i kerl-lang/[email protected] # install specific version
kpi -i # install all from kerl.toml
kpi -r kerl-lang/http-server # remove
kpi -u # update all
kpi -u kerl-lang/http-server # update one
kpi -l # list installed
kpi -init # create kerl.tomlAdd -g to any command to operate globally (~/.kpi/packages/).
kerl.toml
project = "my-project"
version = "1.0.0"
description = "My Kerl project"
author = "Dylan"
license = "MIT"
entry = "main.ke"
[packages]
"kerl-lang/http-server" = "1.2.0"
"kerl-lang/json-parser" = "*"Using installed packages
var math = load("./ke_modules/http-server/main.ke")
print(math.square(5)) # 25How it works
- Hits the GitHub API to resolve the latest release tag (or commit SHA if no releases)
- Downloads the tarball directly from GitHub
- Extracts into
ke_modules/<name>/ - Locks the resolved version in
kerl.lock
No registry. No daemon. Just GitHub.
MIT © Dylan
