Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/capjavert/package-transfer
Simple utility to transfer packages from your dependencies or devDependencies lists into new project.
https://github.com/capjavert/package-transfer
cli hacktoberfest npm package-json package-manager package-manager-tool
Last synced: about 2 months ago
JSON representation
Simple utility to transfer packages from your dependencies or devDependencies lists into new project.
- Host: GitHub
- URL: https://github.com/capjavert/package-transfer
- Owner: capJavert
- License: mit
- Created: 2019-07-24T08:09:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T14:48:46.000Z (over 4 years ago)
- Last Synced: 2024-05-01T13:35:27.649Z (9 months ago)
- Topics: cli, hacktoberfest, npm, package-json, package-manager, package-manager-tool
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/package-transfer
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# package-transfer
[![npm](https://img.shields.io/npm/v/package-transfer)](https://www.npmjs.com/package/package-transfer)
[![Build Status](https://travis-ci.org/capJavert/package-transfer.svg?branch=master)](https://travis-ci.org/capJavert/package-transfer)
[![Coverage Status](https://coveralls.io/repos/github/capJavert/package-transfer/badge.svg)](https://coveralls.io/github/capJavert/package-transfer)Simple utility to transfer packages from your dependencies or devDependencies lists into new project.
## Install
```
npm install -g package-transfer
```## Usage
```
pkg-transfer [options]
```Transfer dependencies from `old-project` to current project (`my-new-project`):
```
cd my-new-project
pkg-transfer -s ../old-project
```The command detects which packages need to be transferred and offers to auto install them into target package.
This command does exactly the same thing only for devDependencies:
```
pkg-transfer -s ../old-project --dev
```If you prefer `yarn` over `npm`:
```
pkg-transfer -s ../old-project --yarn
```## Strict mode
Most of the time you are locking your package.json dependencies to exact version. If you wish to transfer those exact versions to target package.json then just use `--strict` argument.
```
pkg-transfer -s ../my-project --strict
```## Help
Usage: pkg-transfer [options]Options:
-v, --version **Print version**
--verbose **Increase logging verbosity**
-h, --help **Output help and usage information**
-s, --source **Source package (from where you want to transfer dependencies)**
-t, --target **Target package (defaults to current directory)**
--yarn **Use yarn instead of npm**
--dev **Transfer devDependencies**
--dry-run **Just prints install command, does NOT really install anything**
--strict **Use exact versions from source package.json when installing dependencies**