Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FredKSchott/analyze-npm
Analyze npm, hunt for es module packages
https://github.com/FredKSchott/analyze-npm
Last synced: 11 days ago
JSON representation
Analyze npm, hunt for es module packages
- Host: GitHub
- URL: https://github.com/FredKSchott/analyze-npm
- Owner: FredKSchott
- License: other
- Archived: true
- Created: 2018-12-05T17:14:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-18T05:03:20.000Z (over 5 years ago)
- Last Synced: 2024-08-05T11:12:04.485Z (3 months ago)
- Language: JavaScript
- Size: 17.4 MB
- Stars: 35
- Watchers: 5
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - analyze-npm - Analyze npm, hunt for es module packages (JavaScript)
- awesome-github-star - analyze-npm
README
# @pikapkg/analyze-npm
This repository searches the npm graph for the most popular "module" packages.
Based on [@anvaka/npmrank](https://github.com/anvaka/npmrank).# Setup
#### 1. Clone & Install
```
git clone https://github.com/pikapkg/analyze-npm.git
cd analyze-npm
npm install
```#### 2. Download the npm graph data:
```
./01_get_graph.sh
```This will download graph from skimdb and save it to `data` folder. As of
September 2016 this data is about 500MB.#### 3. FInd all ES modules in the local graph data:
node --max-old-space-size=4096 02_analyze_new.js
#### 3. Create the graph for additional analysis:
Convert it to `ngraph.graph` format
for further analysis.```
node --max-old-space-size=4096 02_create_graph.js
```You are now ready to analyze the graph.
## Running additional analysis:
```
node --max-old-space-size=4096 03_analyze_historical.js
node --max-old-space-size=4096 04_collect_historical.js
node --max-old-space-size=4096 04_collect_historical_npm.js
```This will write out a dictionary of "module" packages on npm, to the file called `found-modules.json`.