Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mefengl/ppm
- Owner: mefengl
- License: mit
- Created: 2023-03-28T10:18:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T02:59:41.000Z (over 1 year ago)
- Last Synced: 2024-10-30T10:15:39.540Z (about 2 months ago)
- Language: Shell
- Size: 352 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.