- What is a module?
- How do I use a module?
- What happens when I require a module?
- Module pathing
- Search behavior
- What happens when I use the same module in other modules?
- Instancing
- Load via require
- Execute behavior
- Create new .js file
- Assign behaviors to module.exports
- Load via require
- Execute behaviors
- How does nodejs find a module?
- How are circular references handled?
- What is a package?
- Why would I create a package?
- What is the appropriate granularity of a package?
- How does an app know what packages are required?
- How are packages shared?
- What about my dependencies?
- How is versioning handled?
- What does a package consist of?
- Recommended Structure
- The essentials - index.js and package.json
- Intalling required packages
- Adding a public package
- List packages
- Removing a package
- Updating a package
- Adding a private package
- package.json
- readme.md
- LICENSE
- index.js
- git init
- npm init
- add functionality to index.js
- git commit
- index
- keywords
- homepage
- bugs
- contributors
- files
- main
- bin
- scripts
- engines
- private
- .npmignore
- server.js
- bin
- lib
- GitHub link
- npm link
- npmjs private repo
- npmjs
- Create an account
- npm publish
- Long file paths in Windows
- Flattening and shortening the node_modules folder