Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schniz/gpkg
🌎 A global Node binary manager written in Rust
https://github.com/schniz/gpkg
binary global hacktoberfest manager node package rust
Last synced: about 18 hours ago
JSON representation
🌎 A global Node binary manager written in Rust
- Host: GitHub
- URL: https://github.com/schniz/gpkg
- Owner: Schniz
- Created: 2019-12-26T22:14:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T19:33:50.000Z (22 days ago)
- Last Synced: 2024-12-26T04:08:15.877Z (8 days ago)
- Topics: binary, global, hacktoberfest, manager, node, package, rust
- Language: Rust
- Homepage: https://github.com/Schniz/gpkg
- Size: 82 KB
- Stars: 63
- Watchers: 3
- Forks: 3
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `gpkg`
> 🌎 A consistent global binary manager for Node.js packages, built in Rust
🔒 Lock the correct Node.js version for binaries
💎 Works with [fnm](https://github.com/Schniz/fnm) and nvm and any other Node.js version manager
✨ Single file, easy installation## Installation
1. Download the latest binary into your `$PATH`
2. Add `~/.gpkg/bin` to your `$PATH` environment variable
3. Smile, you're done! 😺## Usage
* `gpkg install `: install a package and its binaries
* `gpkg uninstall `: uninstall a package and its binaries
* `gpkg list`: list all installed binaries, their packages and node versions
* `gpkg completions `: generate shell completions for `gpkg`## 💡 The idea
Install a binary from `npm`, while "statically linking" it to a specific Node version. So, if you installed [`qnm`](https://github.com/ranyitz/qnm) using Node 12 — you'll consistently call Node 12 when using it, even if you changed your Node version to 13, using [`fnm`](https://github.com/Schniz/fnm).