Properties
commands
Optional entrypoint
Optional pkg
Methods
__getClassname
- __getClassname(): string
Returns string
free
- free(): void
Returns void
Static createPackage
- createPackage(manifest): Promise<Wasmer>
Returns Promise<Wasmer>
Static deleteApp
- deleteApp(app): Promise<void>
Returns Promise<void>
Static deployApp
- deployApp(appConfig): Promise<DeployedApp>
Static fromFile
- fromFile(binary, runtime?): Promise<Wasmer>
Parameters
binary: Uint8Array
Optional runtime: Runtime
Returns Promise<Wasmer>
Static fromRegistry
- fromRegistry(specifier, runtime?): Promise<Wasmer>
Parameters
specifier: string
Optional runtime: Runtime
Returns Promise<Wasmer>
Static whoami
- whoami(): Promise<undefined | User>
Returns Promise<undefined | User>
A package from the Wasmer registry.
Example