Package JSON Demystified - The 'Type' Keyword

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • 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.

Комментарии • 4

  • @mrslwiseman
    @mrslwiseman 7 месяцев назад +1

    Great example, thanks!

    • @Ashotofcode
      @Ashotofcode  7 месяцев назад

      Glad you liked it! Cheers Mark

  • @l_i_t_108
    @l_i_t_108 28 дней назад

    the best vid , concise practical and live coding

  • @justkaz7104
    @justkaz7104 9 месяцев назад

    56