words

The amount of 6bit words into which a version is encoded (4 words == 24 bit).

words

Type: Number

encode

Encodes a version of the format x.y.z representing major.minor.patch

encode
Parameters
s (String) the version string, i.e. 1.3.2
Returns
String: the 6bit encoded version into 4 chars

decode

Decodes a version encoded via @see encode

decode
Parameters
chars (String) 4 chars representing the encoded version
Returns
String: the version string, i.e. 1.2.3