Node require Vs import

preview_player
Показать описание

💻 My Software 💻

📚 My Courses 📚

👩‍💻 Download Code 👨‍💻

⌛ Timestamps ⌛
0:00 - Introduction
0:05 - What is a Node Module?
0:52 - Node Module Formatting Systems
1:09 - CommonJS require
1:46 - ECMAScript import
3:06 - .mjs Extension
3:46 - .cjs Extension
4:12 - require is a Function
4:56 - import is a Keyword
5:23 - require is Dynamic import is Static
5:52 - Dynamic import
6:40 - Outro
Рекомендации по теме
Комментарии
Автор

Hey Witt, I found your video about sequlite very helpful. Thanks for your content. Keep it up!

noahmilliken
Автор

Thanks for the info. Explained it really well 👍

forestthefish
Автор

5:23 dynamic vs static - that's what did it for me, i'm working on a dynamic modules system this makes me feel like cjs is going to be cleaner, but i'll have to play around with the dynamic-import promise to get a feel for which will suit my flow better. thanks!

petemoss