
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@saucelabs/bin-wrapper
Advanced tools
:warning: This package is not an official Sauce Labs product and is not supported by Sauce Labs.
npm install --save @saucelabs/bin-wrapper
import { BinWrapper } from '@saucelabs/bin-wrapper';
const baseUrl = 'http://dummy-host/path/to/archives';
const bw = new BinWrapper()
.src(`${baseUrl}/dummy-darwin_arm64.tar`, 'darwin', 'arm64')
.src(`${baseUrl}/dummy-darwin_amd64.tar`, 'darwin', 'x64')
.src(`${baseUrl}/dummy-win64.tar`, 'win32', 'x64')
.dst(path.join(__dirname, 'bin'))
.use(process.platform === 'win32' ? 'dummy.exe' : 'dummy')
(async () => {
await bw.run(['--arg1', '--arg2']);
});
new BinWrapper()Creates a new instance of BinWrapper.
src(path: URL, os: OS, arch: Arch): BinWrapperAdds a source URL for a OS / Arch.
pathType: URL
URL pointing to the archive containing the binary.
osType: 'aix' | 'darwin' | 'freebsd' | 'linux' | 'openbsd' | 'sunos' | 'win32'
OS compatibility of the archive.
archType: 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 's390' | 's390x' | 'x64'
Arch compatibility of the archive.
dest(path: string): BinWrapperDefines where to store the binary.
pathType: string
Target file location.
use(name: string): BinWrapperDefines what file of the archive to use as the binary.
pathType: string
Filename contained withing the archive.
install(): Promise<void>Installs the binary.
run(args: string[]): Promise<number>Runs the binary with the specified args.
argsType: string[]
Arguments to pass to the binary during execution.
path(): stringReturns the path to the binary.
FAQs
Fetches and runs a binary
The npm package @saucelabs/bin-wrapper receives a total of 17,144 weekly downloads. As such, @saucelabs/bin-wrapper popularity was classified as popular.
We found that @saucelabs/bin-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.