JSPM

assemblyscript

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41857
  • Score
    100M100P100Q141448F
  • License Apache-2.0

A proposed subset of TypeScript that compiles to WebAssembly.

Package Exports

  • assemblyscript

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (assemblyscript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AssemblyScript

Initial AssemblyScript typings for syntax compatibility experiments.

Usage

$> npm install assemblyscript

memcpy.as:

export function memcpy(dest: IntPtr<uint8>, src: IntPtr<uint8>, length: intptr): IntPtr<uint8> {
    for (; length; --length, dest.increment(1).value = src.increment(1).value);
    return dest;
}

To perform syntax validation against a (monkey-patched to accept .as files / always include index.d.ts) vanilla TypeScript checker:

$> asc --noEmit memcpy.as

License: Apache License, Version 2.0