Socket
Book a DemoInstallSign in
Socket

github-lang-box

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-lang-box

Update a pinned gist to show your most used programming languages

2.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

简体中文

github-lang-box

💻 Update a pinned gist to show your most used programming languages

github-lang-box npm

Fork of lang-stats-box with some customizations:

  • Updated dependencies, Rewritten in TypeScript
  • Published to npm, Added binary for use with npx or pnpx
  • Use /user/repos endpoint to fetch all repos of the user (including private repos)
  • Custom description, exclude languages and repositories!

Note: Due to the use of /user/repos endpoint, the Fine-grained access tokens must have the metadata:read permission.

Setup

Prep work

Project setup

  • Copy this workflow file to your repo's .github/workflows directory.
  • Go to the repo Settings > Secrets
  • Add the following environment variables:
    • GH_TOKEN: The GitHub access token generated above.
    • GIST_ID: The ID portion from your gist url:
      https://gist.github.com/Aveek-Saha/ 8335e85451541072dd25fda601129f7d.
    • GH_USERNAME: Your GitHub account username.
    • EXCLUDE: A comma-separated list of languages you want to exclude from the gist.
      Eg: Jupyter Notebook, CSS, TeX, PHP
    • EXCLUDE_REPO: A comma-separated list of repositories you want to exclude from the gist.
      Eg: username/repo1, username/repo2
    • DESCRIPTION: A custom description for the gist.

Use as a CLI

Add environment variables to the .env file or export them in the shell, then run:

npx github-lang-box@2
# or
# pnpx github-lang-box@2

Additionally, you can use these commands in your GitHub Actions with a Node.js runtime. Please take a look at the this workflow file.

Options

  • --dry: Dry run, only fetch the data and print the output.

Credits

This code was inspired by @matchai's bird-box.

This is a fork of @Aveek-Saha's lang-stats-box.

FAQs

Package last updated on 26 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.