Code Monkey home page Code Monkey logo

homebrew-thirsty's Introduction

homebrew

brew tap Cur50r/homebrew-thirsty brew install thirsty-raspberry-imager

To create a brew formula for a Node.js script, you will need to create a new formula file in the Homebrew/homebrew-core repository. This file should contain the necessary instructions for Homebrew to install and manage the script.

To create a new formula file, follow these steps:

Fork the Homebrew/homebrew-core repository on GitHub. Clone your fork of the repository to your local machine. Create a new formula file in the Formula directory of your local repository. This file should have the .rb extension and should be named after your Node.js script, with any dashes or underscores replaced by dots (e.g. my-script.rb would be named my.script.rb). Open the formula file in a text editor and add the following template code: Copy code class MyScript < Formula desc "Description of my Node.js script" homepage "https://github.com/username/my-script" url "https://github.com/username/my-script/archive/v1.0.0.tar.gz" sha256 "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"

depends_on "node"

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

test do system "node", "-e", "console.log('hello')" end end Replace the placeholder values in the template code with the appropriate values for your script. For example, you should update the desc and homepage fields to provide a brief description and URL for your script, and you should update the url and sha256 fields to point to the latest version of your script on GitHub. Save the formula file and commit your changes to your local repository. Push your changes to your fork on GitHub and create a new pull request to merge them into the Homebrew/homebrew-core repository. Once your pull request is accepted and merged, your Node.js script will be available to install via Homebrew. To install it, users can run the following command:

Copy code brew install my-script They can then run the script by typing its name at the command prompt (e.g. my-script).

https://bharathvaj.me/blog/how-to-publish-your-nodejs-project-on-homebrew

homebrew-thirsty's People

Contributors

ashley-buckingham avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.