jakearchibald / byte-storage

41 stars 2 forks source link

Append method? #3

Open jakearchibald opened 7 years ago

jakearchibald commented 7 years ago
const writable = await byteStorage.append(name:String);

Same as .write, where start is equal to the store's size.

dominictarr commented 7 years ago

yes please! it may also be useful to be able to put a byte-store into append-only mode, which would disallow random writes, to rewrite you'd have to resize the file (aka, truncate) and then write again.