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
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.
Take this course offline
Subscribe to my newsletter to get every free book and course in PDF and EPUB format.
Get the downloadsCourse 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.