Mastering Node.js Modules
summary
Explains the exact behavior of module loading: require resolves core/local/third-party (checks core, relative paths, node_modules up the folder tree and global path). Shows npm workflows: npm init + package.json to declare versions/dependencies, npm install (local vs -g), npm link for local development, and npm publish to push packages. Cites ~190,000 npm packages and moment’s ~2.5M monthly downloads, demos a local circle calculator, consumes moment and Express, and demonstrates publishing and dependency resolution end-to-end.
AI-written summary · about
chapters (18)
- 0:00Intro
- 0:35What is Nodejs
- 5:50Overview
- 9:52Modules
- 10:09What are modules
- 14:21Required keyword
- 18:36Installing Nodejs
- 19:39Creating a Nodejs App
- 25:24Consuming a ThirdParty Module
- 34:29Creating a custom module
- 37:19Indexjs convention
- 41:54TSD
- 43:12Module Patterns
- 45:42Packages
- 47:19Creating a Package
- 53:14Package Repository
- 56:55GitHub Repository
- 59:01Require Module
