GithubHelp home page GithubHelp logo

capjavert / package-transfer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 59 KB

Simple utility to transfer packages from your dependencies or devDependencies lists into new project.

Home Page: https://www.npmjs.com/package/package-transfer

License: MIT License

JavaScript 100.00%
npm package-json package-manager package-manager-tool cli hacktoberfest

package-transfer's Introduction

package-transfer

npm Build Status Coverage Status

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

package-transfer's People

Contributors

capjavert avatar

Watchers

 avatar

package-transfer's Issues

Add dry run option

This option should just print command without execution.

Activated through argument --dry-run.

Add color coded messages

It would be cool to add color coded messages like in other popular cli tools.

Message Type/Color:

  • Error (red)
  • Warning (yellow)
  • Log (white)
  • Info (blue)

Add tests

Add unit/integration tests for each of the options and commands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.