Skip to content

Alexandr-Gusev/npm-registry-time-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM registry time machine

Proxy for limiting the release dates of packages.

Installation

pip

pip install npm-registry-time-machine

npm

npm install -g npm-registry-time-machine

Usage

Run proxy:

python

npm-registry-time-machine --port 3000 --registry https://registry.npmjs.org --timeout 120 --max-date 2022-02-02

npx

npx npm-registry-time-machine --port 3000 --registry https://registry.npmjs.org --timeout 120 --max-date 2022-02-02

Set proxy as registry:

npm config set registry http://127.0.0.1:3000

Now all packages with a release date exceeding the maximum date are hidden for npm.

How it works

This tool is a proxy between npm and the registry. The proxy receives requests from npm and sends them to the registry. Information about packages with a release date exceeding the maximum date is removed from the response. After that, the response is returned to npm. Therefore, npm uses only those packages that were released no later than the maximum date.

About

Proxy for limiting the release dates of packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published