0.0.8 • Published 9 years ago

npm-search-store v0.0.8

Weekly downloads
11
License
ISC
Repository
github
Last release
9 years ago

npm-search-store

Search the npm registry and save results in MongoDB. Made to be run from a cron task.

npm install npm-search-store -g

Run

KEYWORDS=journster npm-search-store

or if you git pull:

KEYWORDS=journster npm start

The crontab I use for journster.com looks like this:

*/15 * * * * KEYWORDS=journster /usr/bin/node /usr/local/bin/npm-search-store

Environment variables

  • DBLINK

    MongoDB Connection String URI. If not specified, it will default to: mongodb://localhost:27017/npm-search-store

  • KEYWORDS

    A required comma separated list of keywords to search for.

Troubleshoot

If you see this:

$ npm search journster
npm WARN Building the local index for the first time, please be patient
npm http GET https://registry.npmjs.org/-/all
npm http 200 https://registry.npmjs.org/-/all
Killed

The solution might be to download the npm cache to your machine:

wget -O ~/.npm/-/all/.cache.json http://registry.npmjs.org/-/all

Other hacks via npm/npm#3867. Adding a swap file worked for me.

0.0.8

9 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago