https://github.com/marcbachmann/npm-module-search
:mag: A module to search for npm modules
https://github.com/marcbachmann/npm-module-search
Last synced: 9 months ago
JSON representation
:mag: A module to search for npm modules
- Host: GitHub
- URL: https://github.com/marcbachmann/npm-module-search
- Owner: marcbachmann
- Created: 2015-08-27T21:36:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:50:55.000Z (over 2 years ago)
- Last Synced: 2024-04-14T14:40:26.194Z (about 2 years ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# npm-module-search
```javascript
var npmSearch = require('npm-module-search')
npmSearch.search('express', function (err, modules) {
console.log('Here are 20 modules', modules)
// modules is an array of objects like:
// {
// name: "npm-module-search",
// scope: "unscoped",
// version: "2.0.0",
// description: "A module to search for npm modules",
// keywords: [
// "This property may be inexisting if no keywords are set for this package"
// ]
// date: "2017-07-05T01:05:45.455Z",
// links: {
// npm: "https://www.npmjs.com/package/npm-module-search",
// homepage: "https://github.com/marcbachmann/npm-module-search#readme",
// repository: "https://github.com/marcbachmann/npm-module-search",
// bugs: "https://github.com/marcbachmann/npm-module-search/issues"
// },
// author: {
// name: "Marc Bachmann",
// email: "This may be inexisting if the author email is not in the package.json file",
// username: "This may be inexisting as well"
// },
// publisher: {
// username": "marcbachmann",
// email: "marc.brookman@gmail.com"
// },
// maintainers: [
// {
// username: "marcbachmann",
// email: "marc.brookman@gmail.com"
// }
// ]
// }
})
npmSearch.search('express', {limit: 50}, function (err, modules) {
console.log('Here are 50 modules', modules)
})
```