
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
update-available
Advanced tools
:no_entry: This package is deprecated in favour of update-notifier and not maintained anymore.
Checks if there is an update available to your module or not, in other words, is the module is outdated or not.
Imagine you have a cli tool built with node, used by a lot of people. Then in one day you updated the tool and pushed to npm. You want users to be notified about the update.
You can burn this module into your app so that you can notify users that their version is outdated.
It's as simple as updateAvailable().then()
.
No arguments? No, no arguments.
npm install --save update-available
const updateAvailable = require('update-available');
updateAvailable()
.then(result => {
console.log(result);
/*
{
updateAvailable: true
latestVersion: '5.8.0',
currentVersion: '5.5.1'>
}
*/
})
.catch(err => {
// err handling stuff
});
updateAvailable
function returns a Promise.result
contains 3 fields:
updateAvailable
: true
if there is an update, false
if not.latestVersion
: latest version of the package published to the npm registry.currentVersion
: current version of the package installed.err
in .catch
to see if anything went wrong.package.json
file of the host app.name
and version
fields from it.name
.package.json
) with the latest version (obtained from npm registry).v1.0.1
v1.0.0
ISC © Vajahath Ahmed
FAQs
Checks if there is an update available to the module.
The npm package update-available receives a total of 0 weekly downloads. As such, update-available popularity was classified as not popular.
We found that update-available 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
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.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.