Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bacali95/swap-lock-registry
Swap the registry URL in the lock files without having to remove them.
https://github.com/bacali95/swap-lock-registry
Last synced: 13 days ago
JSON representation
Swap the registry URL in the lock files without having to remove them.
- Host: GitHub
- URL: https://github.com/bacali95/swap-lock-registry
- Owner: bacali95
- License: mit
- Created: 2021-02-16T20:29:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T06:47:38.000Z (2 months ago)
- Last Synced: 2024-10-18T23:12:05.672Z (27 days ago)
- Language: TypeScript
- Homepage:
- Size: 313 KB
- Stars: 10
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swap-lock-registry
[![npm version](https://badge.fury.io/js/swap-lock-registry.svg)](https://badge.fury.io/js/swap-lock-registry)
A CLI tool to swap the registry URL in the lock file without having to remove it.
```shell
swap-lock-registry --yarn --parallel --url https://registry.npmjs.com server/yarn.lock client/yarn.lock
```## Install
You can run
```shell
npm install -g swap-lock-registry
```
or
```shell
yarn add global swap-lock-registry
```## Usage
```
swap-lock-registry -u https://registry.npmjs.com [lock-files...]Options:
--help Show help [boolean]
--version Show version number [boolean]
-u, --url The registry url [string] [required]
-i, --ignore List of package name patterns to ignore, ex: @types/*,lodash* [string] [default: ""]
-y, --yarn Whether the files are Yarn lock files [boolean] [default: false]
-p, --parallel Whether the trait the files in parallel. [boolean] [default: false]
```