Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alchemized/binary-install

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alchemized/binary-install

Install binary applications via npm

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Binary Install

Install .tar.gz binary applications via npm

Ruthlessly copied from cloudflare/binary-install and removed functionality of saving binary to bin directory to support jlink binaries. And translated to Typescript.

For more info:

Usage

This library provides a single class Binary that takes a download url and some optional arguments. You must provide either name or installDirectory when creating your Binary.

optiondecription
nameThe name of your binary
installDirectoryA path to the directory to install the binary

If an installDirectory is not provided, the binary will be installed at your OS specific config directory. On MacOS it defaults to ~/Library/Preferences/${name}-nodejs

After your Binary has been created, you can run .install() to install the binary, and .run() to run it.

Example

This is meant to be used as a library - create your Binary with your desired options, then call .install() in the postinstall of your package.json, .run() in the bin section of your package.json, and .uninstall() in the preuninstall section of your package.json. See this example project to see how to create an npm package that installs and runs a binary using the Github releases API.

Keywords

FAQs

Package last updated on 08 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc