Package JSON Demystified - The 'Type' Keyword

Published: 04 August 2021
on channel: A shot of code
1,151
68

In this Javascript tutorial on NPM Package.JSON we look at the 'TYPE' keyword and how it helps us develop with both common JS and ES Modules within a single package.

So by default Node uses and has for a long time Common JS for its module system. With the addition of ES Modules to the browser it seemed a good idea to make consistent across the board and have ES Modules in Node also. This does throw up compatibility issues and this is where the Type keyword can help us to speciy which module system we are using.


Watch video Package JSON Demystified - The 'Type' Keyword online without registration, duration hours minute second in high quality. This video was added by user A shot of code 04 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,15 once and liked it 6 people.