0.0.16 • Published 1 year ago

js-containerregistry v0.0.16

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

js-containerregistry

This is a Javascript library for working with container registries. It relies on google/go-containerregistry compiled in WebAssembly.

You should know:

  • This library is rather large (~8 MB) due to the size of the wasm binary
  • This library will install global polyfills from the Golang WASM execution code. Consider running this library in a web worker.

Usage

When using this library you are responsible for providing an initialization function that returns a WebAssembly.Instance. Different platforms and frameworks provide different utilities for loading WASM binaries. To increase portability, this library does not attempt to load the wasm file on its own.

WASM file location: js-containerregistry/wasm/containerregistry.wasm

Vite

This library integrates particularly well with Vite's handling of WebAssembly.

import {ContainerRegistry} from "js-containerregistry";
import init from "js-containerregistry/wasm/containerregistry.wasm?init";

const cr = new ContainerRegistry(init);
const m = await cr.getManifest("mirror.kontain.me/gcr.io/distroless/static");
console.log(m);

Dependencies versions

PackageVersion
github.com/google/go-containerregistryv0.12.1
0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago