0.1.0 • Published 4 years ago

buffer-file v0.1.0

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
4 years ago

file-buffer

A file-based Buffer wrapper that adds automatic read & write offset tracking, string operations, and more.

npm Package Version

Key Features:

  • Proxies all of the Buffer write and read functions
  • Keeps track of read and write offsets automatically
  • Grows the underneath File as needed
  • Useful string operations. (Null terminating strings)
  • Allows for reading/writing values at specific points in the File (random access)
  • Built in TypeScript (with Type Definitions)
  • Full test coverage

Requirements:

  • sync mode works since Node v0.1.21+
  • async mode works since Node v10.0+

Tests

  • sequential read/write objects with msgpack
  • full test suit based on smart-buffer