Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/files #15

Merged
merged 11 commits into from
Mar 30, 2020
Merged

Feature/files #15

merged 11 commits into from
Mar 30, 2020

Conversation

lkwdwrd
Copy link
Contributor

@lkwdwrd lkwdwrd commented Mar 26, 2020

Adds large file support to the JS SDK!

This works for both Node and the Browser. Care was taken to use streams whenever possible to prevent memory overflow. Each platform provides it's own streams, often wrapped in decorator objects to make the interfaces compatible and behavior more consistent.

Helpers are provided for basic operations on each platform since the return from the read operation is a lower level platform-specific primitive. This is due to the fact that in the browser... well there is no way to save the file to a file system. So to provide flexible enough behavior for different use-cases, the return a a low level primitive, and the helpers convert that into various higher level items, such as strings, object, blobs. etc.

Inline docs are mostly complete. The Readme is also update for this feature.

Questions/ideas welcome.

@@ -251,6 +251,300 @@ async function main() {
main()
```

#### Files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are really great write ups and examples!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, nice job!

lib/crypto/crypto.js Outdated Show resolved Hide resolved
lib/crypto/crypto.js Outdated Show resolved Hide resolved
@lkwdwrd lkwdwrd merged commit 95d0ebd into master Mar 30, 2020
@lkwdwrd lkwdwrd deleted the feature/files branch March 30, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants