Socket
Book a DemoInstallSign in
Socket

@vltpkg/keychain

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vltpkg/keychain

The filesystem keychain for `@vltpkg/registry-client`

latest
Source
npmnpm
Version
1.0.0-rc.13
Version published
Maintainers
0
Created
Source

@vltpkg/keychain

The filesystem keychain for @vltpkg/registry-client

Usage

Overview

This is a tool to store and retrieve private keys for use in the @vltpkg/registry-client.

Usage

import { Keychain } from '@vltpkg/keychain'

// define a keychain with a given application scope
const kc = new Keychain('vlt/auth')

// fetch the auth for a given origin, for example.
// will load file on demand when first get() called.
const auth = await kc.get('https://registry.npmjs.org')

// set a value like this
kc.set('https://some-registry.com', 'Bearer newtoken')

// will attempt to save on process end if there are pending
// writes, but only if the file has not been modified since.
// you can also trigger a write explicitly.
await kc.save()

FAQs

Package last updated on 19 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts