{"_id":"valuepack-mine-npm","_rev":"31-d365dd364cb917b50ae05662cb71b600","name":"valuepack-mine-npm","description":"Mines the npm registry for user and package data used by valuepack.","dist-tags":{"latest":"0.2.5"},"versions":{"0.1.0":{"name":"valuepack-mine-npm","version":"0.1.0","description":"Mines the npm registry for user and package data used by valuepack.","main":"valuepack-mine-npm.js","scripts":{"test":"echo 'TODO'","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level":"~0.9.0"},"devDependencies":{},"keywords":[],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","_id":"valuepack-mine-npm@0.1.0","dist":{"shasum":"40c3f56228fd4a2072d87c2c2292d52a1c168c2b","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.1.0.tgz","integrity":"sha512-wSC/eDoVnV7gdMwxYMZ1BoHxehuLHRIdmB4WlyCiihJyuHgJxWBGNA/vOLdCEaM/55/ZATKS+LtHIjvZHV3OBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCvLUY0e0RkL4nMh0qX+bSM583MLVSg/YdN/ZNAYP8rAiAdeqZsb0kWiW4T5OauXQedb8nzoR4xii7/Caqn7IF/NQ=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.1.1":{"name":"valuepack-mine-npm","version":"0.1.1","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"echo 'TODO'","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level":"~0.9.0","level-dump":"~0.1.0"},"devDependencies":{},"keywords":[],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","_id":"valuepack-mine-npm@0.1.1","dist":{"shasum":"73ee4e9582f0ef3e74bf7542838e85e9e6f37a8a","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.1.1.tgz","integrity":"sha512-B/k7agyv66oltz8BNp20kY+e7zlCg41XiXI0iZ0uR2OKZvahK1L3ug3Feeu4Z6ML6P3hR6IfNrk8SdGXtfshTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqhSM8KeG2DymSon0qBkLwdkinpLnFEv9MI9lZ6nnr2wIhAJmM+E4j8XdAcgsDQb/HUpvU1bME1+/yJdUv2aXY4zXT"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.1.2":{"name":"valuepack-mine-npm","version":"0.1.2","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"echo 'TODO'","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level":"~0.9.0","level-dump":"~0.1.0"},"devDependencies":{},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","_id":"valuepack-mine-npm@0.1.2","dist":{"shasum":"dae242e49c2740194ec8ca5d5fa775187436c812","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.1.2.tgz","integrity":"sha512-bChKqu/e7n4n241aG+zHTzSBeGz0+Ct9kPWzyw0aTeRcXuuEwVGNNbg3FX9QJ3sXosOA82kjr9PIomc8M+urVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcy/Onsc88j9WFwvs+NoArytQVPKO45cVRMZFPybXSZAiAdotBDAk/WzOEeV14gSallY+zygb3NE4H4RaG4XuJrUg=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.1.3":{"name":"valuepack-mine-npm","version":"0.1.3","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"echo 'TODO'","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level":"~0.9.0","level-dump":"~0.1.0","valuepack-core":"~0.1.1"},"devDependencies":{},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","_id":"valuepack-mine-npm@0.1.3","dist":{"shasum":"46c9319f427bd501d80c4a3ca9c3c847e30207d3","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.1.3.tgz","integrity":"sha512-YXWj+TWeiIqZggP7LhL3I/NFq3S9zIcepTll6XXcwnthDfjDlqwLoO6Mm3c9HqmSu4RoxODfs0T/kjwQAjEXfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBeXS3Q5SHLZd1DapKGIA0X+FcoQFcFqCfrtZB3fcfiAIgb7le4VA7w4tjKPJyR03HBsbZikDchBRFylb4k9B/grU="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.2.0":{"name":"valuepack-mine-npm","version":"0.2.0","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"tap test/*.js","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level":"~0.9.0","level-dump":"~0.4.0","valuepack-core":"~0.3.0"},"devDependencies":{"tap":"~0.4.3","level-test":"~1.3.0"},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm [![build status](https://secure.travis-ci.org/thlorenz/valuepack-mine-npm.png)](http://travis-ci.org/thlorenz/valuepack-mine-npm)\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## example\n\n```js\nvar mineNpm = require('valuepack-mine-npm');\n\nmineNpm(function (err) {\n  if (err) return console.error(err);\n  console.log('all npm users and packages stored');\n});\n```\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","_id":"valuepack-mine-npm@0.2.0","dist":{"shasum":"6f8fefe9be746f9c0499ce3e6a2468cd16d0c86c","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.2.0.tgz","integrity":"sha512-c1v4UOQ8l99H38uQfddvb6pOj2m/h+l6xZjZIZop0xbaOodMNEFyeNU61o6Grrs6no9q7gFr4mYltPzuQRPlmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDs1k3NEjQeVpCsw+77jDJSK2zlASiRHjRN4wJx1xxtkQIhAIPVivJWqw+zfslmSfLz4bNDEoYk2CN/LvipwiB4Dc+1"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.2.1":{"name":"valuepack-mine-npm","version":"0.2.1","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"tap test/*.js","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level-dump":"~0.4.0","valuepack-core":"~0.3.0"},"devDependencies":{"tap":"~0.4.3","level-test":"~1.3.0","leveldown":"~0.6.2"},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm [![build status](https://secure.travis-ci.org/thlorenz/valuepack-mine-npm.png)](http://travis-ci.org/thlorenz/valuepack-mine-npm)\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## example\n\n```js\nvar mineNpm = require('valuepack-mine-npm');\n\nmineNpm(function (err) {\n  if (err) return console.error(err);\n  console.log('all npm users and packages stored');\n});\n```\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/valuepack-mine-npm/issues"},"_id":"valuepack-mine-npm@0.2.1","dist":{"shasum":"7781f1e822cf7f37b6b6c2e0f04d9c431386ec59","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.2.1.tgz","integrity":"sha512-oOiQ6F8pFJW+Ow8SfcZcJ3l2PbYKJJYJGIlBjRD/JlVgEozZeqRWl6q2z3QFGbeIMICIj4IgBIDe5KY7aWq15w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFLfX2dxhaf8iSkTUctREbhxaQNQM7GF0mQJa85aLNYAiBWXsyPrVK3ICL9kaibdCC3TUgPKtThV6JrD+fzhvo4pw=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.2.2":{"name":"valuepack-mine-npm","version":"0.2.2","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"tap test/*.js","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level-dump":"~0.4.0","valuepack-core":"~0.3.7"},"devDependencies":{"tap":"~0.4.3","level-test":"~1.3.0","leveldown":"~0.6.2"},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm [![build status](https://secure.travis-ci.org/thlorenz/valuepack-mine-npm.png)](http://travis-ci.org/thlorenz/valuepack-mine-npm)\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## example\n\n```js\nvar mineNpm = require('valuepack-mine-npm');\n\nmineNpm(function (err) {\n  if (err) return console.error(err);\n  console.log('all npm users and packages stored');\n});\n```\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/valuepack-mine-npm/issues"},"_id":"valuepack-mine-npm@0.2.2","dist":{"shasum":"714e03d3bd53daa46254d9bf691b677b2928bf9e","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.2.2.tgz","integrity":"sha512-9RbCkbHQiXsO9d9vIgF7lomdeSuzl4W/e6ZSJn8IXrFk9VrKnfQfCojmOX3QXpjLG7gA+F5sQE/FHWxMqBkmiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFpACQkvARc9kGt4Q+xXRGKOFAxnqrdatbsvcfDfhggAIgJvHkCNYxfn3IWRCYhVo2KzDvibADXQ+5Fg3Kh9cTboU="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"directories":{}},"0.2.3":{"name":"valuepack-mine-npm","version":"0.2.3","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"tap test/*.js","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level-dump":"~0.4.0","valuepack-core":"~0.3.7"},"devDependencies":{"tap":"~0.4.3","level-test":"~1.3.0","leveldown":"~0.6.2"},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm [![build status](https://secure.travis-ci.org/thlorenz/valuepack-mine-npm.png)](http://travis-ci.org/thlorenz/valuepack-mine-npm)\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## example\n\n```js\nvar mineNpm = require('valuepack-mine-npm');\n\nmineNpm(function (err) {\n  if (err) return console.error(err);\n  console.log('all npm users and packages stored');\n});\n```\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/valuepack-mine-npm/issues"},"_id":"valuepack-mine-npm@0.2.3","dist":{"shasum":"99000f374d334a33e7fcc4b837a7386f27b48239","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.2.3.tgz","integrity":"sha512-Y0por9VVHMZXOkC1N2Pa7FsdQ+5xAL10OwxkdnLAFkePRLuiEKeEAuiuBQhAj4CwYVemoT/57Cff/wUSHVMvhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICUzUp+2Oh5lPAXavZGE+Faxc8AYMAfeeA4emdiXuWoDAiEA0vhsjsHdO3QWbemm4bazbooAA5A8MtLeLNAd1OAOHIY="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.2.4":{"name":"valuepack-mine-npm","version":"0.2.4","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"tap test/*.js","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level-dump":"~0.4.0","valuepack-core":"~0.3.9"},"devDependencies":{"tap":"~0.4.3","level-test":"~1.3.0"},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm [![build status](https://secure.travis-ci.org/thlorenz/valuepack-mine-npm.png)](http://travis-ci.org/thlorenz/valuepack-mine-npm)\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## example\n\n```js\nvar mineNpm = require('valuepack-mine-npm');\n\nmineNpm(function (err) {\n  if (err) return console.error(err);\n  console.log('all npm users and packages stored');\n});\n```\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/valuepack-mine-npm/issues"},"_id":"valuepack-mine-npm@0.2.4","dist":{"shasum":"6f7f18ad85941fae4e70d78cfaf2d32df5485cc6","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.2.4.tgz","integrity":"sha512-Ko8EFzr+PA5GBnAPkyI4n8UWp2BNyu1gLmvAwy8u+sBqZD3SJWYlQA8QhY69uLovB39YO/+nDKnDKJMPQrmEMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFCamayiFYTEXJgRGvdJ5mfaSB5AVZf75ewiVldzD9gAiEA3Bf/yBJngDpjQz7PCweD/50P5RB5tL9i/px6+HvTL4I="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]},"0.2.5":{"name":"valuepack-mine-npm","version":"0.2.5","description":"Mines the npm registry for user and package data used by valuepack.","main":"index.js","scripts":{"test":"tap test/*.js","init":"cd ./scripts && ./init.sh"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"},"homepage":"https://github.com/thlorenz/valuepack-mine-npm","dependencies":{"request":"~2.21.0","level-sublevel":"~4.6.12","level-dump":"~0.4.0","valuepack-core":"~0.3.9"},"devDependencies":{"tap":"~0.4.3","level-test":"~1.3.0"},"keywords":["mine","npm","valuepack","leveldb","level","db","information"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"readme":"# valuepack-mine-npm [![build status](https://secure.travis-ci.org/thlorenz/valuepack-mine-npm.png)](http://travis-ci.org/thlorenz/valuepack-mine-npm)\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## example\n\n```js\nvar mineNpm = require('valuepack-mine-npm');\n\nmineNpm(function (err) {\n  if (err) return console.error(err);\n  console.log('all npm users and packages stored');\n});\n```\n\n## functions\n\nThe entire public API is exposed via the index file:\n\n```js\nexports.storeNpmPackages  =  require('./lib/store-npm-packages');\nexports.storeNpmUsers     =  require('./lib/store-npm-users');\nexports.streamNpmPackages =  require('./lib/stream-npm-packages');\nexports.streamNpmUsers    =  require('./lib/stream-npm-users');\n```\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/thlorenz/valuepack-mine-npm/issues"},"_id":"valuepack-mine-npm@0.2.5","dist":{"shasum":"bf77298f91e213981ca78bc5ee736fbf7a80f644","tarball":"https://registry.npmjs.org/valuepack-mine-npm/-/valuepack-mine-npm-0.2.5.tgz","integrity":"sha512-kJktguvQubTlvnk4ujDoR1o7Vk0VqpwdCnh5AE9/ThUimyYebnnBtcDSRghbUp8feQqV+ZOI3ICaaIdQ0qYOGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZklu0MHY/ai4wFWFa/+yQfKtONfKcgTQhSxZLHF9nZAiEAo/q+F4lcSurdkNwSGTg+IMT1I1frBjD47B/i0rLmPP0="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"thlorenz","email":"thlorenz@gmx.de"},"maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}]}},"readme":"# valuepack-mine-npm\n\nSupports [valuepack](https://github.com/thlorenz/valuepack), the community driven rating system for nodejs modules on\nnpm in order to help in selecting the right one.\n\nRead more [about its goals](https://github.com/thlorenz/valuepack/blob/master/goals.md).\n\n## scripts\n\nYou can play with scripts inside `./scripts`.\n\n### environment variables\n\nThe following environment variables are considered by the scripts:\n\n- `VALUEPACK_DATA` the directory in which json data fetched from the npm registry is stored (defaults to\n  `valuepack-mine-npm/data`)\n- `VALUEPACK_MINE_DB` the path at which the leveldb data is stored (defaults to `valuepack-mine-npm/store/valuepack-mine.db`)\n\nMake sure to include them every time you execute a script or add the following to your `.bashrc` (example):\n\n```sh\nexport VALUEPACK_DATA=~/.valuepack/data\nexport VALUEPACK_MINE_DB=~/.valuepack/valuepack-mine.db\n```\n### fetching data initializing the data store\n\nAn init script is provided that fetches all needed data from npm and stores it as json and in a leveldb database at\n`~/.valuepack`.\n\nDo one of the following:\n\n`npm run init`\nor\n`cd scripts && ./init.sh`\n\n### fetch npm data scripts\n\n```sh\n# fetch users\n./fetch-npm-users.js\n\n# fetch packages\n./fetch-npm-packages.js\n```\n\n### rebuild script\n\nIn order to store all data in leveldb, please run:\n\n    ./rebuild-store.js\n\n**Note:** rebuilding the database from local json files takes about 2mins on a MacBookAir.\n\n### store scripts\n\nAll `store-*` scripts take parameters. \n\n- `--read` read out values of the store instead of adding them\n- `--keys` pull out and print keys only\n- `--values` pull out and print values only\n\nTherfore if you want to query data you should always pass the `--read` flag.\n\n#### store-npm-packages specific parameters\n\n- `--owners` list owner indexes instead of packages\n- `--keyword` list keyword indexes instead of packages\n\n#### store-npm-users specific parameters\n\n- `--github` list github login indexes instead of users\n\n### examples\n\n```sh\n# get package keyword count\n./store-npm-packages.js --read --keyword --keys | wc -l\n\n# get package count\n./store-npm-packages.js --read --keys | wc -l\n\n# query how many users did provide a github account\n./store-npm-users.js --read --github --keys | wc -l\n\n# query how many packages dominictarr published\n./store-npm-packages.js --read --owner --keys | grep dominictarr | wc -l\n```\n","maintainers":[{"name":"thlorenz","email":"thlorenz@gmx.de"}],"time":{"modified":"2022-06-28T08:52:27.422Z","created":"2013-06-01T20:06:37.115Z","0.1.0":"2013-06-01T20:06:38.479Z","0.1.1":"2013-06-01T20:52:46.497Z","0.1.2":"2013-06-01T22:04:27.138Z","0.1.3":"2013-06-04T10:55:37.927Z","0.2.0":"2013-06-23T18:35:28.491Z","0.2.1":"2013-07-18T01:45:50.363Z","0.2.2":"2013-08-31T17:18:24.208Z","0.2.3":"2013-08-31T18:16:15.665Z","0.2.4":"2013-08-31T20:03:15.153Z","0.2.5":"2013-08-31T21:44:20.236Z"},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"repository":{"type":"git","url":"git://github.com/thlorenz/valuepack-mine-npm.git"}}