Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
is-published-to-npm
Advanced tools
Is this version of this package published to npm yet?
Use as a cli tool:
# from a directory with a package.json
is-published-to-npm
# or for any package
is-published-to-npm {your package} {your version}
(Check the exit status - anything not zero means it has already been published)
Or as a module:
const { isPublishedToNPM } = require('is-published-to-npm');
// or import { isPublishedToNPM } from 'is-published-to-npm';
const pkg = process.argv[2];
const version = process.argv[3];
isPublishedToNPM(pkg, version)
.then(published => {
if (published) {
console.log(pkg + ' v' + version + ' has been published');
process.exit(1);
} else {
console.log(pkg + ' v' + version + ' has not been published yet');
}
})
.catch(err => {
console.log(err.message);
process.exit(1);
});
FAQs
Checks if a given package & version have been pushed to npm
The npm package is-published-to-npm receives a total of 0 weekly downloads. As such, is-published-to-npm popularity was classified as not popular.
We found that is-published-to-npm 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.