Closed
Description
Specification
- The js-encryptedfs is a core library of js-polykey, its coding standards should be aligned with how we are developing things in js-polykey
- This means the class structure
- Ensuring that we are properly using async await in most cases, and keeping the callback style of the original methods
- Testing
- Linting
Tasks
- Make sure all methods in
EncryptedFS
usespublic
orprotected
, no need to useprivate
- Helper methods should probably be moved into a separate utilities function. There are a lot of helper methods.
- Provide a promise interface under
fs.promises
. So you can doefs.promises.f
wheref
is an awaitable version of the functions.
Addressed https://gitlab.com/MatrixAI/Engineering/Polykey/js-encryptedfs/-/merge_requests/46