Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romankurnovskii/homebrew-fetch
Fetch recent casks and formulas from Homebrew repositories.
https://github.com/romankurnovskii/homebrew-fetch
homebrew
Last synced: 3 days ago
JSON representation
Fetch recent casks and formulas from Homebrew repositories.
- Host: GitHub
- URL: https://github.com/romankurnovskii/homebrew-fetch
- Owner: romankurnovskii
- License: mit
- Created: 2023-05-06T08:36:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-24T09:17:41.000Z (8 months ago)
- Last Synced: 2024-03-24T10:25:56.513Z (8 months ago)
- Topics: homebrew
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/homebrew-fetch
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
homebrew-fetch
Fetch recent casks and formulas from Homebrew repositories.
[![NPM version][npm-image]][npm-url]
![npm-javascript]
[![License][github-license]][github-license-url]## 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
```js
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 ] [--token ]
homebrew-fetch --formulas [--limit ] [--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
```sh
npm install homebrew-fetch# for global usage
npm install -g homebrew-fetch
```or
```sh
yarn add homebrew-fetch
```## API
- **getRecentCasks(limit?: number, token?: string)** => Promise
- **getRecentFormulas(limit?: number, token?: string)** => Promise[package-name]: homebrew-fetch
[npm-url]: https://www.npmjs.com/package/[package-name]
[npm-image]: https://img.shields.io/npm/v/homebrew-fetch
[github-license]: https://img.shields.io/github/license/romankurnovskii/homebrew-fetch
[github-license-url]: https://github.com/romankurnovskii/homebrew-fetch/blob/main/LICENSE
[npm-javascript]: https://img.shields.io/npm/types/homebrew-fetch
[build-status]: https://github.com/romankurnovskii/homebrew-fetch/workflows/CI/badge.svg
[build-status-url]: https://github.com/romankurnovskii/homebrew-fetch
[install-size]: https://packagephobia.com/badge?p=homebrew-fetch
[install-size-url]: https://packagephobia.com/result?p=homebrew-fetch