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

binary2npm

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binary2npm

Prepare execution script for linking binaries from other tools/languages

  • 0.3.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

binary2npm

Prepare execution script for linking binaries from other tools/languages

Currently supports only GitHub API

Installation

npm install binary2npm
# or
yarn install binary2npm
# or
bun add binary2npm

Environment variables

NameDescriptionRequired
GITHUB_TOKENFor GitHub APIYes

Usage

See example

// postinstall.js
import { prepare } from "binary2npm";

await prepare({
  remote: "github",
  author: "MyGitHubUser",
  repository: "my-repo",
  remoteToken: process.env.GITHUB_TOKEN, // To avoid Github API limiting
  binary: "my-binary",
});

then add postinstall.js as hook into your projects scripts, see how it's implemented in Used for CLIs

Used for CLIs

This project was made for first entry but then improved and added support for other ways as well as Windows support added

License

Apache-2.0

Keywords

FAQs

Package last updated on 13 Apr 2024

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