node-persist icon indicating copy to clipboard operation
node-persist copied to clipboard

Can it store binary data(buffer)?

Open snowinszu opened this issue 1 year ago • 2 comments

Can it store binary data(buffer)?

snowinszu avatar Mar 13 '23 08:03 snowinszu

not how it is today, but maybe with some adjustments to how we write/read files

https://github.com/simonlast/node-persist/blob/84654f9ed02bdc085ee06ba9ca6dfdad6ff9948f/src/local-storage.js#L390-L400

https://github.com/simonlast/node-persist/blob/84654f9ed02bdc085ee06ba9ca6dfdad6ff9948f/src/local-storage.js#L304-L318

akhoury avatar Mar 13 '23 14:03 akhoury

a PR is welcome

akhoury avatar Mar 13 '23 14:03 akhoury