Skip to content

nycalexander/eazypm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ eazypm

Version License Node Version NPM Unpacked Size GitHub Last Commit NPM Last Update

Easy and safe dependency reinstaller and package manager mover for npm, pnpm, yarn, and bun with Aikido's safe-chain.

eazypm

Description

eazypm is a command-line tool designed to safely reinstall dependencies for Node.js projects using various package managers (npm, pnpm, yarn, bun). It leverages Aikido's safe-chain to ensure secure and reliable installations, preventing common issues like dependency conflicts or malicious packages.

Features

  • Automatic Package Manager Detection: Detects the package manager based on lock files (pnpm-lock.yaml, yarn.lock, package-lock.json, bun.lockb).
  • Safe Reinstallation: Uses Aikido's safe-chain for secure dependency installation.
  • Backup Creation: Automatically backs up your project files before reinstallation.
  • Interactive CLI: User-friendly prompts to select package manager and confirm actions.
  • Cross-Platform: Works on Windows, macOS, and Linux.
  • Support for Multiple Package Managers: Compatible with npm, pnpm, yarn, and bun.

Installation

Install eazypm globally using your preferred package manager:

npm:

npm install -g eazypm

pnpm:

pnpm add -g eazypm

yarn:

yarn global add eazypm

bun:

bun add -g eazypm

Or install it locally in your project:

npm:

npm install --save-dev eazypm

pnpm:

pnpm add -D eazypm

yarn:

yarn add -D eazypm

bun:

bun add -d eazypm

Usage

Navigate to your Node.js project directory and run:

eazypm

The tool will:

  • Detect the package manager used in your project.
  • Prompt you to select a package manager (with the detected one pre-selected).
  • Read your dependencies from package.json and lock files.
  • Ensure Aikido is installed locally.
  • Generate a safe-chain install command and save it to install-command.txt.
  • Ask if you want to backup and run the installation automatically.

If you choose to run automatically, it will:

  • Create a backup of your project files.
  • Remove existing packages.
  • Reinstall dependencies using the native package manager.
  • Run the Aikido safe-chain command.

Requirements

  • Node.js >= 18
  • Supported package managers: npm, pnpm, yarn, or bun

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Easy and safe dependency reinstaller, and migrator for npm, pnpm, yarn, and bun modules with Aikido's safe-chain.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors