Skip to main content

homebrew-npm-noob

PyPI License Build Status

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

Installation

Either

pip install homebrew-npm-noob

or

brew install zmwangx/npm-noob/noob

Usage

$ 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
specified.

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
                     homebrew/core
  -v, --version      show program's version number and exit
  --debug

Example

$ noob babel-cli
require "language/node"

class BabelCli < Formula
  desc "Babel command line"
  homepage "https://babeljs.io/"
  url "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz"
  sha256 "81ac501721ff18200581c58542fa6226986766c53be35ad8f921fabd47834d02"
  license "MIT"

  livecheck do
    url :stable
  end

  depends_on "node"

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

  test do
    raise "Test not implemented."
  end
end

See Also

Node for Formula Authors in Homebrew’s docs.

License

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

Metadata

Release files for homebrew-npm-noob 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for homebrew-npm-noob 0.3
File Size Uploaded Provenance Actions
homebrew-npm-noob-0.3.tar.gz 5.0 kB Without provenance Details for homebrew-npm-noob-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for homebrew-npm-noob 0.3
File Interpreter ABI Platform Actions
homebrew_npm_noob-0.3-py3-none-any.whl Python 3 none any Details for homebrew_npm_noob-0.3-py3-none-any.whl

Total release size: 11.6 kB

Release files / homebrew-npm-noob-0.3.tar.gz

Download URL homebrew-npm-noob-0.3.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d4dfe5b9d72bd6970aa66d9e25c77fc30e09050facc36b989fdb325a85d2b00d
BLAKE2b-256 checksum
How to use checksums
0acaf5038eecdbb57bf4c978a55aea9d3d2a2d77ada317c755706631b39045ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Release files / homebrew_npm_noob-0.3-py3-none-any.whl

Download URL homebrew_npm_noob-0.3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ed37c7d4efff30a8486e0cdc5fa030eef40d1a752b6e7ec159984e53e3c2f44
BLAKE2b-256 checksum
How to use checksums
aeb54d290daf8ca63f1c82d43bcfe9aa8e5d824e82f817cb6e93c5f051f263f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Security for homebrew-npm-noob 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page