Test a Repository as an npm Package
JSON →test-as-package is a JavaScript/TypeScript utility designed for testing a local repository as if it were an already deployed npm package. This is particularly useful for internal monorepos or libraries where verifying the consumer-facing behavior, including CLI commands and package exports, is crucial without the need for actual publishing. The current stable version is 2.0.4, with patch releases occurring regularly for dependency updates and minor fixes; major versions are less frequent but typically introduce significant changes. A key differentiator is its ability to pack and install the local package into a temporary Node.js `node_modules` environment without modifying the project's `package.json` or `package-lock.json`, thus ensuring a clean testing environment that closely mirrors an actual installation. It offers both a convenient CLI interface for direct execution of test commands and a programmatic API for more granular control within test suites.
Traffic · last 30 days ↓50% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇬🇧 United Kingdom · 🇩🇪 Germany