Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bin-version
Advanced tools
Readme
Get the version of a binary in semver format
$ npm install bin-version
$ curl --version
curl 7.30.0 (x86_64-apple-darwin13.0)
import binaryVersion from 'bin-version';
console.log(await binaryVersion('curl'));
//=> '7.30.0'
$ openssl version
OpenSSL 1.0.2d 9 Jul 2015
import binaryVersion from 'bin-version';
console.log(await binaryVersion('openssl'));
//=> '1.0.2'
$ openssl version
OpenSSL 1.0.2d 9 Jul 2015
import binaryVersion from 'bin-version';
console.log(await binaryVersion('openssl', {args: ['version']}));
//=> '1.0.2'
Returns a Promise<string>
with the version of the binary
.
Type: string
The name of or path to the binary to get the version from.
Type: object
Type: string[]
The arguments to pass to binary
so that it will print its version.
If not specified, predefined arguments will be used for known binaries, or ['--version']
and ['version']
arguments will be tried.
FAQs
Get the version of a binary in semver format
The npm package bin-version receives a total of 1,751,964 weekly downloads. As such, bin-version popularity was classified as popular.
We found that bin-version demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.