Skip to main content

Generate Homebrew formulae for npm packages

Project description

PyPI License Build Status

homebrew-npm-noob generates a Homebrew formula for an npm package. It is inspired by homebrew-pypi-poet.



pip install homebrew-npm-noob


brew install zmwangx/npm-noob/noob


$ noob --help
usage: noob [-h] [-w] [-t TAP] [-v] [--debug] package

Generate a Homebrew formula for an npm package. By default the generated
formula is printed to stdout. If -w, --write is specified, the formula is
directly written to the specified tap, or homebrew/core if no tap is

positional arguments:
  package            name of the package on npm

optional arguments:
  -h, --help         show this help message and exit
  -w, --write        write to filesystem instead of stdout
  -t TAP, --tap TAP  if writing to filesystem, write to this tap instead of
  -v, --version      show program's version number and exit


$ noob babel-cli
require "language/node"

class BabelCli < Formula
  desc "Babel command line"
  homepage ""
  url ""
  sha256 "81ac501721ff18200581c58542fa6226986766c53be35ad8f921fabd47834d02"
  license "MIT"

  livecheck do
    url :stable

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]

  test do
    raise "Test not implemented."

See Also

Node for Formula Authors in Homebrew’s docs.


homebrew-npm-noob is released under the MIT license. See COPYING for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

homebrew-npm-noob-0.3.tar.gz (5.0 kB view hashes)

Uploaded source

Built Distribution

homebrew_npm_noob-0.3-py3-none-any.whl (6.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page