Skip to content

romankurnovskii/homebrew-fetch

Repository files navigation

homebrew-fetch

Fetch recent casks and formulas from Homebrew repositories.

homebrew-fetch

NPM version npm-javascript License

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

About

Fetch recent casks and formulas from Homebrew repositories.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published