
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
installed-package
Advanced tools
installed-packageNote: For the installs to actually work, you'll need a version of node that supports execFileSync (node >=4).
The module will gracefully degrade for earlier node versions.
A helper library that lets you run your tests against an installed version of your package. This helps catch publish-related problems like:
devDependencies in the files shipped to npm.During normal test runs it will just require the files from the project directory.
Only when you run the tests with CI=true will it do a fresh install of the package to a temporary directory and redirect imports there.
npm install --save-dev installed-package
If this is how your tests are currently importing your package:
var mainExport = require('..');
var secondaryEntryPoint = require('../secondary');
// Test code that uses `mainExport`/`secondaryEntryPoint`...
Replace it with the following:
var installed = require('installed-package')();
var mainExport = installed();
var secondaryEntryPoint = installed('secondary');
// Test code that uses `mainExport`/`secondaryEntryPoint`...
The default export of this module is installPackage.
installPackage(packageRoot = process.cwd(), doInstall = process.env.CI)Installs the npm package located at packageRoot into a temporary directory.
Returns a function that will require a module relative to the installed package.
If the function is called without an argument, the main entry point of the package will be required.
FAQs
Run your tests against an installed version of your package
We found that installed-package 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

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.