
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
js2bin-version-info
Advanced tools
Helper module for js2bin. Resolve version information from online resources.
Helper module for js2bin. Resolve version information from online resources.
const { VersionInfo } = require('js2bin-version-info');
/**
* Returns the latest version, for the "build" command.
*/
const getVersionForBuild = async () => {
const info = new VersionInfo();
const version = await info.get('build');
return version;
};
/**
* Returns an array of the latest versions, for the "ci" command.
* It will return an empty array if all the latest versions are already
* available in the js2bin release assets.
*/
const getVersionsForCi = async () => {
const info = new VersionInfo();
const versions = await info.get('ci');
return versions;
};
You can give options either when you create an instance or when you get versions.
const info = new VersionInfo(opt);
const getVersionsForCi = async () => {
const info = new VersionInfo({
current: true,
timeout: 10000
});
const versions = await info.get('ci');
return versions;
};
const getVersionForBuild = async () => {
const info = new VersionInfo();
const version = await info.get('build', {
timeout: 10000
});
return version;
};
Run npm run demo
for the live demo.
FAQs
Helper module for js2bin. Resolve version information from online resources.
The npm package js2bin-version-info receives a total of 0 weekly downloads. As such, js2bin-version-info popularity was classified as not popular.
We found that js2bin-version-info 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.