https://github.com/indexzero/npm-static-stats
Comprehensive static analysis for npm packages through esprima
https://github.com/indexzero/npm-static-stats
Last synced: about 1 year ago
JSON representation
Comprehensive static analysis for npm packages through esprima
- Host: GitHub
- URL: https://github.com/indexzero/npm-static-stats
- Owner: indexzero
- License: apache-2.0
- Created: 2014-05-20T08:28:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-17T02:41:12.000Z (over 11 years ago)
- Last Synced: 2025-03-14T21:54:02.735Z (over 1 year ago)
- Language: JavaScript
- Size: 232 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm-static-stats
Generate comprehensive statistical static analysis graphs based on npm packages.
## Usage
There are two distinct ways to use `npm-static-stats`:
### 1. Use it programmatically
``` js
var statStat = require('npm-static-stats');
statStat.summary({
registry: 'https://registry.nodejitsu.com',
package: 'winston'
}, function (err, res) {
//
// The returned `res` will be the set of all
// methods counted for the specified module
//
});
```
### 2. Use from the command line
```
npm install npm-static-stats -g
npm-static-stats -r http://localhost:5984/registry -p winston
Analyzing 699 modules
pipeline | 1 | 2lemetry
pipeline | 2 | ab-tool
pipeline | 3 | ace-log
pipeline | 4 | actionhero
pipeline | 5 | activepush
analyze | 3 | ace-log
results | 3 | ace-log {"new":{"Logger":2}}
...
...
```
##### License: Apache 2
##### Author: [Charlie Robbins](https://github.com/indexzero)