Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
fixedmegajs
Advanced tools
Unofficial JavaScript SDK for MEGA
API documentation and examples are available in the website: https://mega.js.org/
npm install
npm run build
npm test node
to test Nodenpm test deno
to test Deno if you have it installed (CI will test Deno anyway)next
(not main
)Before creating a pull request, please, run tests. It will avoid a lot of common issues! You can run npm run lint-fix
to fix common issues.
If you implement new features them implement tests for it too if possible. 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).
This package started as a fork, with the following objectives:
__proto__
, which is non-standard and isn't supported in many browsers. Also the updated versions of those libraries broke backyards compatibility;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. Crypto was replaced with secure-random.
As 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. That's why I put "js" in the name, which is silly because both libraries use JavaScript. At least it's better than other ideas I had, like "mega2", "mega-es" and "modern-mega".
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.
FAQs
Unofficial JavaScript SDK for MEGA
We found that fixedmegajs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.