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.
assemblyscript-loader
Advanced tools
AssemblyScript's loader component to run and work with compiled WebAssembly modules, as a stand-alone module.
$> npm install assemblyscript-loader
import load from "assemblyscript-loader";
load("path/to/module.wasm", {
imports: {
...
}
}).then(module => {
...
// i.e. call module.exports.main()
});
load(file: ArrayBuffer | Uint8Array | string
, options: ILoadOptions
): Promise<IModule>
Loads a WebAssembly module either from a buffer or from a file and returns a promise for an IModule
.
ILoadOptions
Options to set up the environment created by load
.
number
number
{ [key: string]: any }
IModule
Common module interface as returned by load
.
WebAssembly.Memory
{ [key: string]: any }
{ [key: string]: any }
Int8Array
Uint8Array
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
number
number
): number
Note that memory views (I8, U8, etc.) are updated when the module's memory grows, hence make sure to always access them directly on the module instance.
FAQs
AssemblyScript's loader component as a stand-alone module.
The npm package assemblyscript-loader receives a total of 31 weekly downloads. As such, assemblyscript-loader popularity was classified as not popular.
We found that assemblyscript-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.