Socket
Book a DemoInstallSign in
Socket

bare-link

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-link

Native addon linker for Bare

latest
Source
npmnpm
Version
2.1.10
Version published
Maintainers
3
Created
Source

Native addon linker for Bare.

npm i [-g] bare-link

Usage

const link = require('bare-link')

for await (const resource of link('/path/to/module', { target: ['darwin-arm64', 'ios-arm64'] })) {
  console.log(resource)
}
bare-link --target darwin-arm64 --target ios-arm64

API

for await (const resource of link([base][, options]))

Options include:

options = {
  target: [],
  out: '.',
  preset,
  sign: false,

  // Apple signing options
  identity: 'Apple Development',
  keychain,

  // Windows signing options
  subject,
  subjectName,
  thumbprint
}

CLI

bare-link [flags] [entry]

Flags include:

  --version|-v            Print the current version
  --target|-t <host>      The host to target
  --out|-o <dir>          The output directory
  --preset <name>         Apply an option preset
  --sign                  Sign the library
  --identity <id>         The macOS signing identity
  --keychain <name>       The macOS signing keychain
  --subject <id>          The Windows signing subject
  --subject-name <name>   The Windows signing subject friendly name
  --thumbprint <sha1>     The Windows signing subject thumbprint
  --help|-h               Show help

License

Apache-2.0

FAQs

Package last updated on 27 Nov 2025

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