Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
can-npm-publish
Advanced tools
A command line tool that check to see if `npm publish` is possible.
A command line tool that check to see if npm publish
is possible.
All check list is passed, exit status will be 0
.
private:true
package@version
is already published in npm registryInstall with npm:
npm install can-npm-publish
Usage
$ can-npm-publish [directory|package.json path]
Options
--verbose show detail of errors
Examples
$ can-npm-publish
$ echo $? # 0 or 1
All check list is passed, exit status will be 0
.
If has any error, exit status will be 1
.
If you want to know details of the error, you can use --verbose
flag.
$ can-npm-publish --verbose
almin@0.13.10 is already published
$ echo $?
1
Run can-npm-publish
before npm publish
:
can-npm-publish && npm publish
You can use it for publishing without choice.
For example, it is useful for using with lerna.
Publish all packages if it is possible.
lerna exec --bail=false -- "can-npm-publish && npm publish"
In this use-case, you should use @monorepo-utils/publish instead of can-npm-publish
.
Because, @monorepo-utils/publish wrapped can-npm-publish
.
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu
FAQs
A command line tool that check to see if `npm publish` is possible.
We found that can-npm-publish 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.