How to find search/find npm packages

2019-01-20 23:03发布

问题:

What ways are there to find npm packages?

Below is community maintained listing compiled from the answers below.

NPM Specific

  • In console, npm search <keyword>
  • https://www.npmjs.org/
  • http://eirikb.github.com/nipster/ via https://stackoverflow.com/a/10571033
  • http://node-modules.com/ via https://stackoverflow.com/a/13593402
  • https://nodejsmodules.org/ via https://stackoverflow.com/a/17821476
  • http://npmsearch.com/ via https://stackoverflow.com/a/34471018

Generic

  • http://github.com
  • https://libraries.io

Dead

  • http://browsenpm.org/ via https://stackoverflow.com/a/24338500
  • https://github.com/joyent/node/wiki/modules
  • http://toolbox.no.de/ aka http://nodetoolbox.com/
  • http://packagefinder1-enome.dotcloud.com/

回答1:

There's nipster too, based on npm + github rating.



回答2:

npm search works pretty well:

npm search connect

npm view will show you the timestamp of each version and everthing else from package.json (including node version)

npm view connect



回答3:

Libraries.io is great for searching and filtering through NPM modules, you can also filter by license and keyword: https://libraries.io/search?platforms=NPM



回答4:

https://nodejsmodules.org/ is one that lets you search, as well as browse by popularity



回答5:

npmsearch sorts the results by a combination of relevance and downloads. The command line version can be installed from npm:

[sudo] npm install -g npmsearch

disclamer: I am the author of npmsearch


node-modules allows you to personalize your results according to the modules that you have starred/followed on github



回答6:

For a fast method available in your console, type:

npm search keyword

< Keyword > searches Title, Description, Author and Keywords of all packages.



回答7:

http://browsenpm.org/ is a new one by nodejitsu that's quite good, features dependency listings, dependency licenses, community info, among other nifty stuff



回答8:

We just released http://search.node.modules.by.locoticket.com (alpha version) which allows advanced search filters like:

  • Having certain modules as descendants/descendency
  • Look for terms within the keywords/description/readme
  • Get results that have been modified recently
  • Etc...

I hope you find it useful. We created it as it was getting quite hard for us to find what we wanted as the number of modules was growing so rapidly.



回答9:

I personally use npmsearch.com

I'm not sure how it works internally but it usually gives the best results.



回答10:

Just in case anyone comes across this question, I also created a tool to help people discover what npm packages other people are using:

http://www.npmdiscover.com



回答11:

https://github.com/Enome/node-package-finder (Latest commit 26ff789 on 4 May 2012, should count as dead)



回答12:

Here's another one: https://npmaddict.com/

Not a search but daily list of New packages with at least 5 GitHub stars



回答13:

It's sad but npm search won't work for me on node version 6+.

A quick workaround is by doing a curl from the command line:

curl --fail -O https://www.npmjs.com/package/q-promise 2>&1 | grep '404'

If this command returns nothing then the module exist if it does return a 404 the name is available for you to use.



回答14:

https://npms.io is really nice, provides quality and maintenance stats too



标签: node.js npm