Giter Site home page Giter Site logo

mrbartusek / readmeactivityfeed Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 63 KB

Simple NPM package for generating list of recent Github activity of a user to put in your profile README ⚡

License: MIT License

TypeScript 100.00%
readme readme-profile profile-readme github-activity github-api typescript npm

readmeactivityfeed's Introduction

Readme Activity Feed

npm build status

Simple NPM package for generating list of recent Github activity of a user to put in your profile README.md. This works similarly to github-activity-readme or activity-box but it's a actually library rather than an action.

Installation

npm install readme-activity-feed

Usage

This library exports generate function with alias Generate. It takes 3 arguments:

Parameter Type Optional Default Description
username string Github username of a user.
maxEvents number 5 The maximum number of lines generated.
token str GITHUB_TOKEN environment variable The PAT used for authentication to the Github API. By default it uses GITHUB_TOKEN which is present when running in Github Actions.

Usage

You can see how it work on my profile readme

const readmeActivityFeed = require("readme-activity-feed")

console.log(readmeActivityFeed.generate("MrBartusek"))

Example Output:

💪 Opened PR #8 in MrBartusek/ReadmeActivityFeed
🏷️ Published v1.0.0 of MrBartusek/ReadmeActivityFeed
❗️ Closed #42 in MrBartusek/ReadmeActivityFeed
🗣 Commented on #42 in MrBartusek/ReadmeActivityFeed
🔀 Forked MrBartusek/ReadmeActivityFeed
🎉 Published MrBartusek/ReadmeActivityFeed

readmeactivityfeed's People

Contributors

mrbartusek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.