🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@playerdata/verdaccio-storage-expiry

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@playerdata/verdaccio-storage-expiry

A plugin to automatically remove packages not used recently

latest
Source
npmnpm
Version
1.2.13
Version published
Weekly downloads
43
377.78%
Maintainers
3
Weekly downloads
 
Created
Source

verdaccio-storage-expiry

A plugin to automatically remove packages not used recently

Usage

Install the plugin

Set it as a storage backend and load the middleware:

store:
  "@playerdata/verdaccio-storage-expiry":

storage_maximum_usage_kb: SPACE_IN_KB

Configure your expiry policies per package group if storage_culling_enabled is not set it will be assumed false:

packages:
  '**':
    ...
    storage_culling_enabled: true

When the storage directory size exceeds storage_maximum_usage_kb the plugin will start deleting package versions. First ones that havent been accessed since the server started then the ones least recent used since the server started.

Development

Compile this repo: yarn build

download verdaccio repo at the version you are developing for

configure it to use this plugin:

store:
  storage-expiry:
# path to a directory with plugins to include
plugins: /PATH/TO/DIR/CONTAINING/THIS/ONE

and run its debug script npm run debug

Keywords

verdaccio-

FAQs

Package last updated on 06 Jul 2023

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