An open API service indexing awesome lists of open source software.

https://github.com/gladiuscode/javascript-modules

This repository holds a guide into how modules work in JavaScript
https://github.com/gladiuscode/javascript-modules

Last synced: 10 months ago
JSON representation

This repository holds a guide into how modules work in JavaScript

Awesome Lists containing this project

README

          

# Javascript Modules

This repository contains a collection of mini-projects that demonstrate the use of JavaScript modules.
From how it used to work in the past to how it works now both in the browser and in Node.js.

## NodeJS

[Node.js](https://nodejs.org/en) supports both the CommonJS and ES module systems (since Node.js v12 - );

## Typescript

[Typescript](https://www.typescriptlang.org) supports both the CommonJS and ES module systems.
By default, Typescript compiles to CommonJS modules, but it can be configured to compile to ES modules too, you can
find more information in the [Typescript documentation](https://www.typescriptlang.org/docs/handbook/2/modules.html).

- [CommonJS](./typescript/common-js)
- [ES Modules](./typescript/esm)