{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7970","labels_url":"https://api.github.com/repos/npm/npm/issues/7970/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7970/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7970/events","html_url":"https://github.com/npm/npm/issues/7970","id":68889239,"number":7970,"title":"Searching packages using the npm library","user":{"login":"IonicaBizau","id":2864371,"avatar_url":"https://avatars.githubusercontent.com/u/2864371?v=3","gravatar_id":"","url":"https://api.github.com/users/IonicaBizau","html_url":"https://github.com/IonicaBizau","followers_url":"https://api.github.com/users/IonicaBizau/followers","following_url":"https://api.github.com/users/IonicaBizau/following{/other_user}","gists_url":"https://api.github.com/users/IonicaBizau/gists{/gist_id}","starred_url":"https://api.github.com/users/IonicaBizau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IonicaBizau/subscriptions","organizations_url":"https://api.github.com/users/IonicaBizau/orgs","repos_url":"https://api.github.com/users/IonicaBizau/repos","events_url":"https://api.github.com/users/IonicaBizau/events{/privacy}","received_events_url":"https://api.github.com/users/IonicaBizau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-16T09:59:56Z","updated_at":"2015-04-17T05:30:52Z","closed_at":null,"body":"I want to fetch all the packages having the `jxengine` keyword. I [posted a question on SO](http://stackoverflow.com/q/29667151/1420197) about that and got the following snippet:\r\n\r\n```js\r\nvar npm = require(\"npm\");\r\n\r\nnpm.load({}, function () {\r\n    npm.commands.search([\"jxengine\"], true, function (err, result) {\r\n        if (err) {\r\n            throw new Error(err);\r\n        }\r\n        console.log(Object.keys(result));\r\n    });\r\n});\r\n```\r\n\r\nI have some questions:\r\n\r\n 1. Is there a way to disable completely the verbose output (using the `silent` parameter set to `true` seems only to disable the table)? Currently it outputs things like below:\r\n\r\n   ![image](https://cloud.githubusercontent.com/assets/2864371/7178478/c9604fb6-e437-11e4-97aa-87d977a65cd9.png)\r\n\r\n 2. How to get the same packages that are fetched on npm site? There are currently [8 packages](https://www.npmjs.com/search?q=jxengine), but the script above fetches only 4.\r\n\r\n 3. How to use the `staleness` parameter? Probably it is related to my second point?\r\n\r\nThanks! :smile: "},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/93896282","html_url":"https://github.com/npm/npm/issues/7970#issuecomment-93896282","issue_url":"https://api.github.com/repos/npm/npm/issues/7970","id":93896282,"user":{"login":"IonicaBizau","id":2864371,"avatar_url":"https://avatars.githubusercontent.com/u/2864371?v=3","gravatar_id":"","url":"https://api.github.com/users/IonicaBizau","html_url":"https://github.com/IonicaBizau","followers_url":"https://api.github.com/users/IonicaBizau/followers","following_url":"https://api.github.com/users/IonicaBizau/following{/other_user}","gists_url":"https://api.github.com/users/IonicaBizau/gists{/gist_id}","starred_url":"https://api.github.com/users/IonicaBizau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IonicaBizau/subscriptions","organizations_url":"https://api.github.com/users/IonicaBizau/orgs","repos_url":"https://api.github.com/users/IonicaBizau/repos","events_url":"https://api.github.com/users/IonicaBizau/events{/privacy}","received_events_url":"https://api.github.com/users/IonicaBizau/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T05:30:52Z","updated_at":"2015-04-17T05:30:52Z","body":"@othiym23 Problem 1 solved. :+1: So, `loglevel: \"silent\"` (everything lowercase) is what I need. \r\n\r\nStill two other questions needs to be solved. :smile: "}}