Formulae

List formulae metadata for all nodenv formulae

List the brew info --json=v1 output for all current nodenv/homebrew-nodenv formulae.

GET https://nodenv.github.io/formulae/api/formula.json

Response

[
  ...
  {
    "name": "nodenv-update",
    "full_name": "nodenv/nodenv/nodenv-update",
    "oldname": null,
    "aliases": [],
    "versioned_formulae": [],
    "desc": "Update nodenv plugins not installed with Homebrew",
    "homepage": "https://github.com/charlesbjohnson/nodenv-update",
    "versions": {
      "stable": "1.0.0",
      "devel": null,
      "head": "HEAD",
      "bottle": false
    },
    "urls": {},
    "revision": 0,
    "version_scheme": 0,
    "bottle": {},
    "keg_only": false,
    "bottle_disabled": false,
    "options": [],
    "build_dependencies": [],
    "dependencies": [
      "nodenv"
    ],
    "recommended_dependencies": [],
    "optional_dependencies": [],
    "uses_from_macos": [],
    "requirements": [],
    "conflicts_with": [],
    "caveats": null,
    "installed": [],
    "linked_keg": null,
    "pinned": false,
    "outdated": false
  },
  ...
]

Get formula metadata for a nodenv formula

Get the brew info --json=v1 output for a single, current nodenv/homebrew-nodenv formula with an extra analytics key with analytics data.

GET https://nodenv.github.io/formulae/api/formula/${FORMULA}.json

Variables

Response

{
  "name": "nodenv-update",
  "full_name": "nodenv/nodenv/nodenv-update",
  "oldname": null,
  "aliases": [],
  "versioned_formulae": [],
  "desc": "Update nodenv plugins not installed with Homebrew",
  "homepage": "https://github.com/charlesbjohnson/nodenv-update",
  "versions": {
    "stable": "1.0.0",
    "devel": null,
    "head": "HEAD",
    "bottle": false
  },
  "urls": {},
  "revision": 0,
  "version_scheme": 0,
  "bottle": {},
  "keg_only": false,
  "bottle_disabled": false,
  "options": [],
  "build_dependencies": [],
  "dependencies": [
    "nodenv"
  ],
  "recommended_dependencies": [],
  "optional_dependencies": [],
  "uses_from_macos": [],
  "requirements": [],
  "conflicts_with": [],
  "caveats": null,
  "installed": [],
  "linked_keg": null,
  "pinned": false,
  "outdated": false,
  "analytics": {
    "install": {
      "30d": {
        "nodenv-update": 0
      },
      "90d": {
        "nodenv-update": 0
      },
      "365d": {
        "nodenv-update": 0
      }
    },
    "install_on_request": {
      "30d": {
        "nodenv-update": 0
      },
      "90d": {
        "nodenv-update": 0
      },
      "365d": {
        "nodenv-update": 0
      }
    },
    "build_error": {
      "30d": {
        "nodenv-update": 0
      }
    }
  }
}

Analytics

List analytics events

List all analytics events for a specified category and number of days.

GET https://nodenv.github.io/formulae/api/analytics/${CATEGORY}/${DAYS}.json

Variables

Response

{
  "category": "install",
  "total_items": 13273,
  "start_date": "2020-03-06",
  "end_date": "2020-04-05",
  "total_count": 20029499,
  "items": [
    ...
    {
      "number": 3614,
      "formula": "nodenv/nodenv/node-build-update-defs",
      "count": "39",
      "percent": "0.00"
    },
    ...
  ]
}
Fork me on GitHub