Package Exports
- homebrew-fetch
- homebrew-fetch/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (homebrew-fetch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
homebrew-fetch
Fetch recent casks and formulas from Homebrew repositories.
About
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.
🌟 Features
- Fetch recent casks and formulas from Homebrew repositories
- Support for GitHub personal access tokens
📖 Usage
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);
Usage (global module)
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' ]
# ]
🛠️ Installation
npm install homebrew-fetch
# for global usage
npm install -g homebrew-fetch
or
yarn add homebrew-fetch
API
- getRecentCasks(limit?: number, token?: string) => Promise
- getRecentFormulas(limit?: number, token?: string) => Promise