homebrew-fetch

0.1.0 • Public • Published

homebrew-fetch

homebrew-fetch

Fetch recent casks and formulas from Homebrew repositories.

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

or

yarn add homebrew-fetch

API

  • getRecentCasks(limit?: number, token?: string) => Promise
  • getRecentFormulas(limit?: number, token?: string) => Promise

Readme

Keywords

none

Package Sidebar

Install

npm i homebrew-fetch

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

9.53 kB

Total Files

5

Last publish

Collaborators

  • romankurnovskii