Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mefengl/ppm

ppm: A Node.js CLI tool to manage global development tools and packages, using pnpm or npm based on your Node.js version, streamlining installation and uninstallation processes.
https://github.com/mefengl/ppm

Last synced: 10 days ago
JSON representation

ppm: A Node.js CLI tool to manage global development tools and packages, using pnpm or npm based on your Node.js version, streamlining installation and uninstallation processes.

Awesome Lists containing this project

README

        

# ppm (pnpm Package Manager)

![example](images/example.png)

## Description

This repository contains a command-line tool called `ppm` (pnpm Package Manager) to automate the installation and uninstallation of common development tools and packages. The script checks your Node.js version and installs packages using pnpm if the Node.js version is 16.14 or higher, otherwise, it uses npm for installation.

## Usage

use it now by copying the global-npm-packages.sh file and modifying the packages array

0. Alias the `ppm` command in your shell profile:

```
alias ppm='sh /path/to/ppm.sh'
```

1. Run the `ppm` command to install the defined packages:

```
ppm
```

2. To uninstall the packages, run the `ppm` command with the `-u` flag:

```
ppm -u
```

## Customizing the Script

You can customize the list of packages to be installed by modifying the `packages` array in the `ppm` script. Add or remove package names as needed.

Example:

```
packages=(
"yarn"
"vercel"
"turbo"
)
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.