const UintNArray = require('uint-n-array').default;
const input = [6, 2, 4, 0, 3, 1, 2, 0, 7];
// UintArray with n=3
const buffer = UintNArray.encode(3, input);
console.log(buffer, buffer.byteLength);
const decoded = UintNArray.decode(3, buffer);
console.log(decoded);