0.1.3 • Published 1 year ago

wasm-oci v0.1.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

WASM-OCI

The WASM-OCI is a library that handle basic push/pull operations for WASM artifacts hosted on the OCI compatible container registry.

Features

Pulling WASM modules

import { WasmRegistry } from 'wasm-oci'

const registry = new WasmRegistry('/tmp/registry')
const wasm = await registry.pull('quay.io/cardil/cloudevents-pretty-print')

console.log({ wasm })

The above will download the WASM file, from the image, and place it in the /tmp/registry dir.

{
  wasm: WasmImage {
    image: Image {
      registry: 'quay.io',
      name: 'cardil/cloudevents-pretty-print',
      tag: 'latest',
      hash: undefined
    },
    file: '/tmp/registry/cardil-cloudevents-pretty-print-latest.wasm'
  }
}

The file is checked, after the wire transfer to have a proper checksum.

Pushing WASM modules

Not yet implemented

Contributing

See the CONTRIBUTING.md file.

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago