JavaScript to TypeScript in Node.js

Use es modules

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

In this segment you will learn how to use ecmascript modules instead of commonjs modules. Using import from instead of require is something that is very important to understand, typescript is also using import from to import functionality from another module, file, …

Keywords

  • Ecmascript
  • es modules
  • commonjs
  • node modules
  • scripting

Conflict of Interest

The author declares no conflict of interest.

About this video

Author(s)
Joris Hermans
First online
13 May 2022
DOI
https://doi.org/10.1007/978-1-4842-8203-8_5
Online ISBN
978-1-4842-8203-8
Publisher
Apress
Copyright information
© The Editor(s) (if applicable) and The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022