caret-pos

Locate the current position of the caret. A plain JavaScript version of Caret.js.

smart-buffer

smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.