Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Supports for npm global packages #1048

Closed
nolddor opened this issue Jun 26, 2024 · 2 comments
Closed

[FEAT] Supports for npm global packages #1048

nolddor opened this issue Jun 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@nolddor
Copy link
Contributor

nolddor commented Jun 26, 2024

Wanted features:

https://nodejs.org/en/learn/getting-started/an-introduction-to-the-npm-package-manager

npm is the standard package manager for Node.js.

Would be great if packages module from fastfetch add support for global packages installed system wide using de facto node.js package manager.

Motivation:

Same as apt or snap I personally use npm eventually to add system-wide packages. By running the npm install <package> -g command. As for now, I have no way to check how many npm global packages there are on my system.

Current workaround is to use the command fastfetch module as per sample below:

    {
      "type": "command",
      "text": "ls -l \"$(npm root -g)\" | grep -c ^d |  awk '{print $1 \" (npm)\"}'",
      "key": "Packages"
   }
@nolddor nolddor added the enhancement New feature or request label Jun 26, 2024
@CarterLi
Copy link
Member

Currently we have no plan for programming language specific package managers. I think the command module is enough for your personal use.

de facto node.js package manager

There are also yarn global and pnpm -g

@CarterLi CarterLi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2024
@nolddor
Copy link
Contributor Author

nolddor commented Jun 27, 2024

Sounds fair. Thx for your time checking this request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants