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
- Host: GitHub
- URL: https://github.com/gladiuscode/javascript-modules
- Owner: gladiuscode
- License: mit
- Created: 2024-07-13T08:45:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-14T19:39:08.000Z (over 1 year ago)
- Last Synced: 2024-07-15T10:14:27.323Z (over 1 year ago)
- Language: JavaScript
- Size: 1.06 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)