janver

Installation

Install from GitHub

Install the current repository with jpm:

jpm install https://github.com/djha-skin/janver

Then import an implementation module from a Janet program:

(import janver/debian)
(assert (= 0 (debian/vercmp "1.2.3" "1.2.3")))

The other implementation modules are janver/semver2, janver/maven, and janver/ruby. The compatibility module janver still provides the original prefixed function names.

Build from source

Clone the repository and install its project-local dependencies:

git clone https://github.com/djha-skin/janver.git
cd janver
jpm -l deps
jpm -l build

The source modules are under src/ and declare-source installs them under the janver prefix. Use jpm -l test to run the project’s test suite from a working checkout.

Requirements

You need Janet and jpm. The project dependencies are installed into jpm_tree/, which is ignored by Git and does not need to be managed manually.