
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
bin-manager
Advanced tools
Binary wrapper that makes your programs seamlessly available as local dependencies
🌀 Binaries available as local nodeJS dependencies
$ npm install --save bin-manager
const bmanager = require('bin-manager');
const base = 'https://github.com/imagemin/gifsicle-bin/raw/master/vendor';
const bin = bmanager('bin', 'gifsicle')
.src(base + '/macos/gifsicle', 'darwin')
.src(base + '/linux/x64/gifsicle', 'linux', 'x64')
.src(base + '/win/x64/gifsicle.exe', 'win32', 'x64')
.use(process.platform === 'win32' ? 'gifsicle.exe' : 'gifsicle');
bin.run(['--version'], (err, out) => {
if (err) {
console.log(error);
return;
}
console.log(out.stdout);
});
Creates a new bmanager instance.
Type: string
Default: ''
Accepts a path where the binaries will be stored to.
Type: string
Default: ''
Accepts an unique slug for the binary.
The binary will be downloaded inside the path: dist/slug
Adds a source to download. If 0 arguments are passed, the array of current setted sources is returned.
Type: string
Accepts a URL pointing to a file to download.
Type: string
Tie the source to a specific OS.
Type: string
Tie the source to a specific arch.
Adds a destination folder.
Type: string
The path which the files will be downloaded to.
Get or set the binary path of the extracted file.
Type: string
Define which file to use as executable. If undefined the current setted value is returned.
Returns the full path where the binary will downloaded to.
Returns the full path to your binary.
Returns the URLs that will be used/was used to download the binaries for your platform.
Runs the search for the binary. If no binary is found it will download it
using the URL provided in .src().
It usese download under the hood.
See here all available options.
Type: Object
Default: {extract: true}
Type: Function
Removes downloaded binaries, if presents.
It usese del under the hood.
See here all available options.
Type: Object
Default: {}
Type: Function
Runs the binary. If the binary is not loaded it will also load it.
It usese execa under the hood.
See here all available options.
Type: Array
Default: []
Type: Object
Default: {}
Type: Function
Returns a possible error and the output object.
See also the list of contributors who participated in this project.
Heavily inspired from bin-wrapper
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Binary wrapper that makes your programs seamlessly available as local dependencies
The npm package bin-manager receives a total of 21 weekly downloads. As such, bin-manager popularity was classified as not popular.
We found that bin-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.