jankoegel / pkgzap

⚡️ View funding information of your dependencies and tip them via lightning

Home Page:https://getalby.github.io/pkgzap/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pkgzap

An easy way to get the funding details of all the dependencies used in your project and send satoshis. Uses the metadata provided by package registries to fetch information about each dependency's funding sources.

🚀 Quick Start

pkgzap-cli

Run it in your project's root directory with

npx pkgzap-cli

See more here

pkgzap

npm install pkgzap

getFundingDetails

import { getFundingDetails } from "pkgzap";

const fundingInfo = getFundingDetails();

console.log(JSON.stringify(fundingInfo, null, 2))

fetchFundingInfo

import { fetchFundingInfo } from "pkgzap";

const fundingInfo = fetchFundingInfo(packageJsonData); // depth is defaulted to 1

console.log(JSON.stringify(fundingInfo, null, 2))

See more here

🛠 Development

Landing Page

yarn install
yarn run dev

And for styling:

npx tailwindcss -i ./src/input.css -o ./src/index.css --watch

lib and cli

yarn install
yarn run build

About

⚡️ View funding information of your dependencies and tip them via lightning

https://getalby.github.io/pkgzap/


Languages

Language:JavaScript 51.7%Language:CSS 41.2%Language:TypeScript 6.2%Language:HTML 1.0%