特性:星历图表插件

作者: rahuldkjain创建于 2025年10月28日更新于 2025年10月28日
标签enhancementhacktoberfest

Parameters

Parameter Type Required Default Description
repos string[] Yes - Array of repos in format ["owner/repo", ...]
type string No Date Chart type: "Date" or "Timeline"
theme string No light Theme: "light" or "dark"

Generated URL Format

https://api.star-history.com/svg?repos=owner/repo1,owner/repo2&type=Date&theme=dark

Example Code

typescript
// URL Builder Function
interface StarHistoryParams {
  repos: string[];
  type?: 'Date' | 'Timeline';
  theme?: 'light' | 'dark';
}

const generateStarHistoryURL = (params: StarHistoryParams): string => {
  const searchParams = new URLSearchParams({
    repos:
…

内容来源: rahuldkjain/github-profile-readme-generator