simonlast / node-persist

Super-easy persistent data structures in Node.js
MIT License
719 stars 78 forks source link

Can it store binary data(buffer)? #144

Open snowinszu opened 1 year ago

snowinszu commented 1 year ago

Can it store binary data(buffer)?

akhoury commented 1 year ago

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 commented 1 year ago

a PR is welcome