GitHub - JoshuaKGoldberg/tidelift-me-up: CLI that checks if your npm packages are eligible for Tidelift funding. ๐Ÿ’ธ (original) (raw)

CLI that checks if your npm packages are eligible for Tidelift funding. ๐Ÿ’ธ

๐Ÿ‘ช All Contributors: 5 ๐Ÿค Code of Conduct: Kept ๐Ÿงช Coverage ๐Ÿ“ License: MIT ๐Ÿ“ฆ npm version ๐Ÿ’ช TypeScript: Strict

What?

Tidelift is a service for companies to sponsor their open source dependencies. Through Tidelift, companies contribute to a fund that is distributed monthly to maintainers of eligible open-source packages in a process called "lifting".

Unfortunately, there's no easy way on the Tidelift website to search for which packages under a particular open source maintainer are eligible for lifting or currently being lifted. This CLI does that!

See it in action online at tidelift-me-up-site.vercel.app!

Usage

Run this with npx:

...and your list of packages will log to the console:

๐Ÿ‘‰ abc-def is not yet lifted, but is estimated for $25.0/mo.
โœ… ghi-jkl is already lifted for $50.0/mo.

Tip: add | grep yet to filter to only packages that are not yet lifted.

npx tidelift-me-up | grep yet

Options

npx tidelift-me-up --ownership author --ownership publisher --reporter json --since 2020 --username your-username

Node API

This package also exports a tideliftMeUp function you can call to receive an array of results:

import { tideliftMeUp } from "tidelift-me-up";

await tideliftMeUp(); /* [ { estimatedMoney: 25, lifted: false, name: 'your-eligible-package' } ] */

It takes in the same options as the CLI, except for reporter:

import { tideliftMeUp } from "tidelift-me-up";

await tideliftMeUp({ ownership: ["author", "publisher"], since: new Date("2020"), username: "your-username", });

Development

See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md. Thanks! ๐Ÿ’ธ

Contributors

Jordan Harband Jordan Harband๐Ÿค” ๐Ÿ› Josh Goldberg Josh Goldberg๐Ÿ”ง ๐Ÿ’ป ๐Ÿ› ๐Ÿค” ๐Ÿšง ๐Ÿš‡ ๐Ÿ“– ๐Ÿ–‹ ๐Ÿ“† Maggie Maggie๐Ÿ“– ๐Ÿ”ง ๐Ÿ› ๐Ÿ’ป ๐Ÿค” Sindre Sorhus Sindre Sorhus๐Ÿ› StyleShit StyleShit๐Ÿ’ป

๐Ÿ’ This package was templated with create-typescript-app using the Bingo framework.