VLQ (variable-length quantity) is a way to encode integers via text.
This base64-encoded variant is notably used in sourcemaps.
Encode a single integer to the VLQ representation.
This will always behave the same as if you wrapped the integer in a list and encoded it with encode
VLQ.encodeSingle 1
--> "C"
VLQ.encodeSingle 123456789
--> "qxmvrH"Decode a VLQ-encoded string back into a list of integers.
VLQ.decode "C"
--> Just [ 1 ]
VLQ.decode "AAAA"
--> Just [ 0, 0, 0, 0 ]
VLQ.decode "2HwcqxB"
--> Just [ 123, 456, 789 ]
VLQ.decode "Not a VLQ string"
--> NothingThe minimum and maximum VLQ integer values representable by JavaScript bitwise operators are -2147483648 (-2^31) and 2147483647 (2^31 - 1) respectively.
Minimum integer usable with this library: -2147483648 (-2^31)
Maximum integer usable with this library: 2147483647 (2^31 - 1)
Encode a list of integers to the VLQ representation.