🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

binary2npm

Prepare execution script for linking binaries from other tools/languages

unpublished
latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
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

binary

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