
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
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
The npm package installed-package receives a total of 1 weekly downloads. As such, installed-package popularity was classified as not popular.
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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.