# oci-registry-js

> ## Usage ```js

Latest version **1.2.0** (published 2021-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install oci-registry-js
pnpm add oci-registry-js
yarn add oci-registry-js
bun add oci-registry-js
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-01-22 |
| First published | 2021-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 4 |
| Unpacked size | 337 KB |
| Known vulnerabilities | 0 (+35 in 2 direct dependencies) |
| Install scripts | no |
| Author | Pixeladed |
| Maintainers | pixeladed |
| Keywords | oci, registry, artifact |

## Links

- npm: https://www.npmjs.com/package/oci-registry-js
- Homepage: https://github.com/Pixeladed/oci-registry-js
- npm.io page: https://npm.io/package/oci-registry-js

## Dependencies (4)

- [tar](https://npm.io/package/tar.md) ^6.1.0
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [url-join](https://npm.io/package/url-join.md) ^4.0.1
- [make-error](https://npm.io/package/make-error.md) ^1.3.6

## Recent versions

- 1.2.0 (latest) — 2021-01-22
- 1.1.0 — 2021-01-12
- 1.0.0 — 2021-01-12

## README

# OCI Registry JS

## Usage
```js

import { Registry } from 'oci-registry-js'

// create a new registry instance
const registry = new Registry({ url: 'http://localhost:5000' })

// retrieve a list of tags for an image
const tags = registry.pullTags('nginx')
  .then(tags => console.log('available nginx tags:', tags))

// pull an image
// this will store the image layers in a directory called '/tmp/:imageName'
registry.pull('nginx:latest')
  .then(artifact => console.log('pulled', artifact.name, 'with layers', artifact.layers))
// or you can also do
registry.pull({ name: 'nginx', reference: 'latest' })

```

---
_Source: https://npm.io/package/oci-registry-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
