Skip to content
🕹️ Code to extract package.json from popular JavaScript|TypeScript repositories that are not on npm.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.eslintignore
.eslintrc
.gitattributes
.gitignore
.markdownlint.json
.ncurc.json
.npmrc
.travis.yml
LICENSE
README.md
count-repos.js
dataset_count_repos.zip
dataset_top_level_only.zip
dataset_tree_traversal.zip
gh-apps.js
package.json

README.md

gh-apps

Code to extract package.json from popular JavaScript|TypeScript repositories that are not on npm

travis license

Usage

  • Create a .env file containing the variables:

    • GITHUB_TOKEN1: your github API token.
    • PROGRAMMING_LANGUAGE: '0' for JavaScript, '1' for TypeScript. Defaults to '0'.
    • ONLY_TOP_LEVEL: 'false' to fully traverse the git tree for package.json files. Defaults to 'true'.
    • STAR_COUNT2: '1000' limit used for npm run count-repos. Defaults to '0'.

    1 If the script reaches GitHub's rate limit, it will pause and resume when the limit resets. You can also use GITHUB_TOKENS to provide an array of tokens and the script will circle through them if the limit is reached.

  • Install dependencies & run the script

    npm i
    npm start

2 You can also run npm run count-repos to create a csv containing the number of repositories for each star count. To set this limit, configure STAR_COUNT

Dataset

Filename format is: <stars>📎<owner>📎<repo>📎[<path>]package.json, where reserved characters (e.g. /) are converted to !.

License

MIT © Napoleon-Christos Oikonomou

You can’t perform that action at this time.