Gathering detailed insights and metrics for @mole-inc/bin-wrapper
Gathering detailed insights and metrics for @mole-inc/bin-wrapper
Gathering detailed insights and metrics for @mole-inc/bin-wrapper
Gathering detailed insights and metrics for @mole-inc/bin-wrapper
Binary wrapper that makes your programs seamlessly available as local dependencies
npm install @mole-inc/bin-wrapper
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (98.75%)
Shell (1.25%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
223 Commits
2 Forks
1 Branches
Updated on Mar 20, 2023
Latest Version
8.0.1
Package Id
@mole-inc/bin-wrapper@8.0.1
Unpacked Size
815.19 kB
Size
180.95 kB
File Count
5
NPM Version
9.1.2
Node Version
18.12.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
8
Binary wrapper that makes your programs seamlessly available as local dependencies
$ npm install @mole-inc/bin-wrapper
1import {BinWrapper} from '@mole-inc/bin-wrapper'; 2 3const base = 'https://github.com/imagemin/gifsicle-bin/raw/master/vendor'; 4const bin = new BinWrapper() 5 .src(`${base}/macos/gifsicle`, 'darwin') 6 .src(`${base}/linux/x64/gifsicle`, 'linux', 'x64') 7 .src(`${base}/win/x64/gifsicle.exe`, 'win32', 'x64') 8 .dest(path.join('vendor')) 9 .use(process.platform === 'win32' ? 'gifsicle.exe' : 'gifsicle') 10 .version('>=1.71'); 11 12(async () => { 13 await bin.run(['--version']); 14 console.log('gifsicle is working'); 15})();
Get the path to your binary with bin.path
:
1console.log(bin.path); 2//=> 'path/to/vendor/gifsicle'
if you have the requested binary installed globally, this one will be used instead (if everything works)
new BinWrapper(options)
Creates a new BinWrapper
instance.
Type: Object
Type: boolean
Default: false
Whether to skip the binary check or not.
Type: string
Default: undefined
Set the binary filename.
Type: object
Default: undefined
Any of the https.request
options.
https://github.com/sindresorhus/got/tree/v11#options
Adds a source to download.
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.
Type: string
Accepts a path which the files will be downloaded to.
Type: string
Define which file to use as the binary.
Returns the full path to your binary.
Type: string
Define a semver range to check the binary against.
Runs the search for the binary. If no binary is found it will download the file
using the URL provided in .src()
.
Type: Array
Default: ['--version']
Command to run the binary with. If it exits with code 0
it means that the
binary is working.
This is a fork of kevva/bin-wrapper.
see LICENSE file.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/20 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More