Skip to content

lightweight and extensible Node.js utility package that provides summarized details about repos, commits and language coverages for a given profile.

License

Notifications You must be signed in to change notification settings

sgc93/wrap-git-ts

Repository files navigation

Wrap-Git

wrap-git is a powerful Node.js package that provides an easy way to interact with the GitHub API, supporting both JavaScript and TypeScript.
It wraps various endpoints and operations, enabling developers to access and summarize GitHub data with minimal effort.
This package simplifies data retrieval and analysis from GitHub, making it an excellent choice for integrating GitHub functionalities into your applications.

Features

  • Fetch user profiles and filter screen data.
  • Fetch and filter commits, repositories, and languages coverages.
  • Analyze commits per each year.
  • Analyze repos — tops, star counts, and details.
  • Analyze language coverage per each repo, top languages, and percentages.

Installation

Install the package using npm:

npm install wrap-git

or with yarn:

yarn add wrap-git

Usage

You can use the package by importing individual methods or use the default export.

Option A — Named imports

  import { getUserProfile, commitSummarizar, repoSummarizer, lngSummarizer } from "wrap-git";

  const userProfile = await getUserProfile('sgc93');  // don't forget to handle errors

Option B — Default import

  import wrapGit from "wrap-git";

  const { getUserProfile, commitSummarizar, repoSummarizer, lngSummarizer } = wrapGit;
  const userProfile = await getUserProfile('sgc93');  // don't forget to handle errors

Contributing

We welcome contributions! Feel free to submit issues or create pull requests.

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details

Author

Developed and maintained by smachew G.. Built with ❤️ using Node.js and TypeScript.

About

lightweight and extensible Node.js utility package that provides summarized details about repos, commits and language coverages for a given profile.

Topics

Resources

License

Stars

Watchers

Forks