A skip-list based memory allocator built on top of typed arrays (and node buffers).
It lets you allocate a large, contiguous slab of memory up front and then
free() within that buffer.
It is mostly useful in conjunction with things like mmap.js.
It's developed using design by contract, so you might find the library's own code style a bit unusual, but it doesn't affect usage.
Install via npm.
;const heap = 1024 * 1024;const allocator = heap; // heap could also be an ArrayBufferconsole;const input = "Hello World";const offset = allocator;heap;console;console;console;