ghinfo

v4.0.1
CLI util for generating a GitHub project information file
automated cli github info repo util

Package logo

Build Status npm Standard Shared Config

CLI util for generating a GitHub project information file.

The main purpose of creating a package is to save on the number of requests to the GitHub GraphQL API to get information about the repository (for example, to display packages on your website)

Install

npm install ghinfo --save-dev

Usage

ghinfo generate -d media -t utils

Generate .ghinfo with logo, social-preview and package description:

{
  "name": "ghinfo",
  "version": "2.0.3",
  "description": "CLI util for generating a GitHub project information file",
  "keywords": ["automated", "repo", "info", "cli", "github", "util"],
  "repo": "keindev/ghinfo",
  "type": "utils",
  "links": {
    "git": "https://github.com/keindev/ghinfo",
    "npm": "https://www.npmjs.com/package/ghinfo",
    "homepage": "https://github.com/keindev/ghinfo#readme"
  },
  "files": {
    "logo": "media/logo.svg",
    "social-preview": "media/social-preview.png"
  }
}

API

Read the API documentation for more information.

npm i ghinfo

Metadata

  • MIT
  • >=16.0.0
  • Daniil Ryazanov
  • released 2/13/2024

Downloads

Maintainers