![]() ![]() ![]() In 1.0 release request was replaced with fetch, Deno support was added (including tests), TypeScript types were added, Rollup was replaced with esbuild, streaming libraries were updated or replaced and some issues were fixed. At least it's better than other ideas I had, like "mega2", "mega-es" and "modern-mega". That's why I put "js" in the name, which is silly because both libraries use JavaScript. Megatools maps node tree structure to a traditional filesystem paths (eg. Structure of the filesystem is not encrypted. Nodes are identified by a 8 character node handles (eg. Crypto was replaced with secure-random.Īs there were many changes there isn't any plan to merge those changes into the original library, unless the original author accept those massive changes. megasync -local MyBackups -remote /Root/Backups -download REMOTE FILESYSTEM .nz filesystem is represented as a tree of nodes of various types. Request package was replaced with a shim based in browser-request and xhr-stream, which additional changes in order to make it work inside Service Workers. Continue the original library development implementing new features and improving performance.Make tests work again after the changes above.Rewrite code using the new JavaScript syntax, allowing to use Rollup, which can generate smaller bundles.Reduce dependencies and replace big dependencies with smaller ones, like crypto libraries, which usually are huge.Also the updated versions of those libraries broke backyards compatibility Make the original package work in browsers again: even following the instructions from the original library it stopped working because some dependencies used _proto_, which is non-standard and isn't supported in many browsers.This package started as a fork, with the following objectives: The hash at the end of test/helpers/test-runner.mjs may be updated if tests are updated in a way it change server state (like adding new files to tests). If you implement new features them implement tests for it too if possible. Optionally run npm test deno to test Deno if you have it installed (CI will test Deno anyway).īefore creating a pull request, please, run tests.Run at least Node tests using npm test node to test Node.Build the bundled versions using npm run build.Make sure you agree with MEGA's Terms of Service before using it.This is all unofficial, based on developer guide and site source.This is based on tonistiigi's mega library.API documentation and examples are available in the website:
0 Comments
Leave a Reply. |