Skip to content

iamnapo/gh-apps

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

gh-apps

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

build

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 !.

About

๐Ÿ•น๏ธ Code to extract package.json from popular JavaScript|TypeScript repositories that are not on npm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published