
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
Because I don't need your tests in my production!
Packages in npm are bloated with stuff which you will never ever use, like build files and different kinds of test data. Guys from npm provided us with .npmignore files, but seems like almost no one uses it. Please, stop publishing your development stuff to npm. If I would like to run your tests and start hacking on your project I will do git clone not npm install. Once our project has increased in size in 13Mb and this is just because of single test data file which was used by one of our dependencies (true story). Poor testing farm...
So:
npm then bloated dependencies make you unhappy.npm and e.g. TravisCI. Imagine how thousands of small useless files impacts installation time of your package.dmn ("dependency minifier" or "damn missing .npmignore" or "dmn is a meaningless name") - is a command line tool which will help you deal with bloated dependencies. It can clean your node_modules from stuff which you will never need. And it can gracefully generate .npmignore file for your project. Both operations are based on list of ignore targets. Send me a pull request If I missed something in this list.
$ npm install -g dmn
Usage: dmn <command(s)> [options]
Commands:
gen : generate (or add items to existing) .npmignore file
To keep item in release package just prepend it's
pattern with '!'.
clean : clean project's node_modules from useless clutter
Options:
-f, -force : don't ask for command confirmation
-l, -list : list files that will be deleted by "clean" command
Generate .npmignore for your project:
$ cd <to_your_project>
$ dmn gen --f
Or do this before publishing:
$ dmn gen --f && npm publish
Or even better:
$ dmn gen --f && git add .npmignore && git commit ...
Clean your project's dependencies:
$ cd <to_your_project>
$ dmn clean --f
Clean newly installed dependency:
$ npm install --save <new_dependency> && dmn clean --f
Install dependencies then clean them for cloned repo:
$ git clone https://github.com/<username>/<reponame>
$ cd <reponame> && npm install && dmn clean --f
If you have any questions, please feel free to create an issue here on github.
FAQs
Node package dependency cleaner and .npmignore file generator.
The npm package dmn receives a total of 21 weekly downloads. As such, dmn popularity was classified as not popular.
We found that dmn demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.