oci-client
v0.0.13
Published
Node client to pull from OCI Registries
Readme
OCI Client
A lightweight Node.js client for interacting with OCI registries (v2).
Overview
This library provides a simple way to pull content from OCI registries. It handles authentication, OCI URI parsing, manifest retrieval and blob fetching.
Installation
npm install oci-clientFeatures
- Pull manifests and layers from OCI-compliant registries
- Support for various authentication methods (username/password, auth token, config file)
- Parse and handle OCI URIs
- Zero dependencies for a lightweight footprint
Usage Examples
Basic Usage - Fetching a Blob
// ./examples/basic-fetch-blob.tsAuthentication with Username and Password
// ./examples/auth-username-password.tsAuthentication with Docker Config File
// ./examples/auth-docker-config-file.tsParsing and Working with OCI Content
// ./examples/general.tsWorking with Manifests
// ./examples/basic-fetch-manifest.tsFetching a Specific Layer
// ./examples/basic-fetch-layer.ts