New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-repository-cards

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-repository-cards

Show customizable GitHub repository cards

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Github Repo Cards

Show customizable GitHub repository cards on your website in just a couple of HTML lines.

NPM

Dark mode

dark.png

Light mode

light.png

Usage

Add the necessary scripts and styles from a CDN.

<script src="https://cdn.jsdelivr.net/npm/github-repository-cards@latest/app.js" defer></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-repository-cards@latest/style.css">

Show user repos

<section class="github-repo-cards" data-user="github"></section>

Show user starred repos

<section class="github-repo-cards" data-user="github" data-starred=true></section>

Parameters

The cards are customizable. You can pass parameters to the section to make changes to the cards.

data-user

Your GitHub username.

data-starred

Pass data-starred (default false) along with data-user to display latest user starred repos.

data-target-blank

Pass data-target-blank (default true) to open the links in a new tab.

data-count

Pass data-max-count (default 12) to specify the maximum number of repos to show.

data-background

Pass data-background (default #0d1117) to configure the background of the container. The value can be any CSS-acceptable color value. You can also add custom CSS to your own project.

Keywords

github

FAQs

Package last updated on 15 Sep 2023

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