An open API service indexing awesome lists of open source software.

https://github.com/rantav/node-github-list-packages

A node modules that lists packages used by github projects
https://github.com/rantav/node-github-list-packages

Last synced: about 1 month ago
JSON representation

A node modules that lists packages used by github projects

Awesome Lists containing this project

README

        

node-github-list-packages
=========================

A node modules that lists packages used by github projects

Give a repository URL this module would search for packages files of different platforms, analyze and list their dependencies.
So for example it would look for package.json and list the dependencies found in this file.

# Usage

```
npm install node-github-list-packages
```

```
lister = require('node-github-list-packages');
_u = require('underscore');
lister.getUsedPackages('https://github.com/rantav/node-github-list-packages', function(err, packageFiles) {
// The interesting info is in the packages node of each file
console.log(_u.union(_u.pluck(packageFiles, 'packages')));
});
```

Or command line:
```
$ github-list-packages https://github.com/rantav/node-github-list-packages
```

# Supported Packagers
* NPM (package.json)
* Meteor (.meteor/package)
* Meteor Atmosphere (smart.json)
* Meteor NPM (packages.js)
* Python (requirements.txt)
* Ruby (Gemfile)
* ...and... More to come...