Fetch recent casks and formulas from Homebrew repositories.
homebrew-fetch
is a Node.js package that fetches recent casks and formulas from Homebrew repositories. It provides an API that allows you to retrieve the latest casks and formulas with an optional limit, and it supports GitHub personal access tokens for authentication.
- Fetch recent casks and formulas from Homebrew repositories
- Support for GitHub personal access tokens
import { getRecentCasks, getRecentFormulas } from 'homebrew-fetch';
const casks = await getRecentCasks(10);
console.log('Recent Casks:', casks);
const formulas = await getRecentFormulas(10);
console.log('Recent Formulas:', formulas);
homebrew-fetch --help
homebrew-fetch --casks [--limit <limit>] [--token <token>]
homebrew-fetch --formulas [--limit <limit>] [--token <token>]
homebrew-fetch --casks --limit 10
homebrew-fetch --formulas --token YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
# get token from here https://github.com/settings/tokens
export GITHUB_TOKEN=....
homebrew-fetch --formulas
# if no token, script will run git clone before
homebrew-fetch --formula --limit 100
# Recent Formulas: [
# modified: [
# 'libxml2', 'libxml2', 'exploitdb',
# 'protolint', 'ada-url', 'cdk8s',
# ]
homebrew-fetch --cask
# Recent Casks: [
# modified: [
# 'hackolade', 'thunder', 'readmoreading',
# '4k-video-downloader', 'ipepresenter', 'ipe',
# ],
# removed: [ 'shellhere', 'movist', 'max', 'prismatik' ],
# added: [ 'submariner', 'entry' ]
# ]
npm install homebrew-fetch
# for global usage
npm install -g homebrew-fetch
or
yarn add homebrew-fetch
- getRecentCasks(limit?: number, token?: string) => Promise
- getRecentFormulas(limit?: number, token?: string) => Promise