1.1.1 ā€¢ Published 3 years ago

readme-activity-feed v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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:

ParameterTypeOptionalDefaultDescription
usernamestringGithub username of a user.
maxEventsnumberāœ“5The maximum number of lines generated.
tokenstrāœ“GITHUB_TOKEN environment variableThe PAT used for authentication to the Github API. This don't need to be provided but then, you can hit the ratelimit.

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

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago