{"id":16117368,"url":"https://github.com/trystan2k/zsh-npm-plugin","last_synced_at":"2026-03-16T16:04:29.611Z","repository":{"id":86376185,"uuid":"245791452","full_name":"trystan2k/zsh-npm-plugin","owner":"trystan2k","description":"A ZSH plugin to set custom NPM aliases. It's based (forked) from Oh-My-ZSH one.","archived":false,"fork":false,"pushed_at":"2024-05-20T20:57:05.000Z","size":72,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T06:44:20.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trystan2k.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-08T10:08:37.000Z","updated_at":"2024-05-20T20:55:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"b36c0d87-a8d8-4ad5-af24-6f0335f7178f","html_url":"https://github.com/trystan2k/zsh-npm-plugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/trystan2k/zsh-npm-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Fzsh-npm-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Fzsh-npm-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Fzsh-npm-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Fzsh-npm-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trystan2k","download_url":"https://codeload.github.com/trystan2k/zsh-npm-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trystan2k%2Fzsh-npm-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28101486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-28T02:00:05.685Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T20:44:29.690Z","updated_at":"2025-12-28T16:44:01.884Z","avatar_url":"https://github.com/trystan2k.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# ZSH NPM Plugin\n\n[![GitHub version](https://badge.fury.io/gh/trystan2k%2Fzsh-npm-plugin.svg)](https://badge.fury.io/gh/trystan2k%2Fzsh-npm-plugin)\n\n![Build](https://github.com/trystan2k/zsh-npm-plugin/workflows/CI-workflow/badge.svg)\n\nA zsh plugin that add NPM custom alias\n\nThis is completely based on [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/npm) NPM plugin.\n\n## Installation\n\n### Using [zinit](https://github.com/zdharma/zinit)\n\nAdd `zinit light trystan2k/zsh-npm-plugin` into `.zshrc`\n\n### Using [zpm](https://github.com/zpm-zsh/zpm)\n\nAdd `zpm load trystan2k/zsh-npm-plugin` into `.zshrc`\n\n### Using [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)\n\nExecute `git clone https://github.com/trystan2k/zsh-npm-plugin ~/.oh-my-zsh/custom/plugins/zsh-npm-plugin`. Add `zsh-npm-plugin` into plugins array in `.zshrc`\n\n### Using [antigen](https://github.com/zsh-users/antigen)\n\nAdd `antigen bundle trystan2k/zsh-npm-plugin` into `.zshrc`\n\n### Using [zgen](https://github.com/tarjoilija/zgen)\n\nAdd `zgen load trystan2k/zsh-npm-plugin` into `.zshrc`\n\n## Aliases\n\n| Alias     | Command                     | Descripton                                                      |\n| :-------- | :-------------------------- | :-------------------------------------------------------------- |\n| `npmg`    | `npm i -g`                  | Install dependencies globally                                   |\n| `npmi`    | `npm i`                     | Install dependencies locally                                    |\n| `npmS`    | `npm i -S`                  | Install and save to dependencies in your package.json           |\n| `npmD`    | `npm i -D`                  | Install and save to dev-dependencies in your package.json       |\n| `npmE`    | `PATH=\"$(npm bin)\":\"$PATH\"` | Run command from node_modules folder based on current directory |\n| `npmO`    | `npm outdated`              | Check which npm modules are outdated                            |\n| `npmV`    | `npm -v`                    | Check package versions                                          |\n| `npmL`    | `npm list`                  | List installed packages                                         |\n| `npmL0`   | `npm ls --depth=0`          | List top-level installed packages                               |\n| `npmlsg`  | `npm list -g`               | List installed packages globally                                |\n| `npmlsg0` | `npm list -g --depth=0`     | List top-level installed packages globally                      |\n| `npmst`   | `npm start`                 | Run npm start                                                   |\n| `npmt`    | `npm test`                  | Run npm test                                                    |\n| `npmR`    | `npm run`                   | Run npm scripts                                                 |\n| `npmP`    | `npm publish`               | Run npm publish                                                 |\n| `npmNew`  | `npm init`                  | Run npm init                                                    |\n| `npmclr!` | `rm -rf ./node_modules/`    | Clear node_modules in current directory                         |\n| `nre!`    | `npmclr! \u0026\u0026 npmi`           | Reinstall packages                                              |\n| `npmF`    | `npm search`                | Search in the npm database                                      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrystan2k%2Fzsh-npm-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrystan2k%2Fzsh-npm-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrystan2k%2Fzsh-npm-plugin/lists"}