With the release of Deno 2.0 the support for npm packages is now available, but this does not work “out-of-the-box” for the libsodium-wrappers package, as the actual functions are only provided after loading the WebAssembly file. Therefore, this small module closes the gap to be able to use sodium as usual!
All functions, interfaces and constants were taken from @types/libsodium-wrappers with a few non functional related changes. The only difference is the initial routine, you need to call await sodium_init()
now instead of await ready
.
libsodium uses the ISC license while this repository was published under the MIT license.