0.0.16 • Published 2 years ago

js-containerregistry v0.0.16

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years 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

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago