Prevent accidental publishing of incomplete or work-in-progress npm packages with in-publish. This simple utility throws an error if you attempt to publish without setting the NODE_ENV environment variable to production. It is a crucial pre-publication check. Integrate it into your prepublishOnly script in package.json to ensure proper environment configuration before publishing, thus safeguarding against unintended releases. This avoids broken or incomplete packages going live.
The npm package in-publish was actively released in 2015, with 3 versions in January and one each in July. After a long period of inactivity, a single version (2.0.1) was released in March 2020. Since then, there have been no further releases, with the most recent data covering up to August 2025 showing no activity.
The npm package "in-publish" saw fluctuating downloads. Downloads peaked in March and April 2024, and again in June and July 2025. There has been a steady but slight decline from October 2024 to May 2025. Downloads for the current month of August 2025 are incomplete.