Free course
npm and Package Publishing Course
Create, test, package, publish, secure, version, and maintain a small npm package as a real consumer contract.
Prerequisites: JavaScript and Node.js
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Publish and verify a small npm package with intentional exports, dependency policy, consumer tests, a release gate, and a recovery plan.
Course contents
Package foundations
Define the contract, metadata, exports, license, and packed artifact.
Versions and dependencies
Use semantic versions, ranges, lockfiles, dependency roles, and peer contracts.
Local package development
Build, test, consume, and develop packages through scripts and workspaces.
Publish safely
Protect registry identity, run a release gate, publish, verify, and recover.
Maintain the package
Protect compatibility, communicate changes, update dependencies, and retire responsibly.