Newer
Older
CrypticOreWallet / src / utils / credits.ts
@Drew Lemmy Drew Lemmy on 22 Feb 2021 363 bytes feat: nyi warning
import packageJson from "../../package.json";

export function getAuthorInfo(): { authorName: string; authorURL: string; gitURL: string } {
  const authorName = packageJson.author || "Lemmmy";
  const authorURL = `https://github.com/${authorName}`;
  const gitURL = packageJson.repository.url.replace(/\.git$/, "");

  return { authorName, authorURL, gitURL };
}