https://github.com/cutenode/simple-esm
A bare minimal example of ESM + Node.js
https://github.com/cutenode/simple-esm
esm experimental-modules export import node nodejs npm
Last synced: 11 months ago
JSON representation
A bare minimal example of ESM + Node.js
- Host: GitHub
- URL: https://github.com/cutenode/simple-esm
- Owner: cutenode
- License: mit
- Created: 2019-04-24T20:56:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T03:48:45.000Z (over 6 years ago)
- Last Synced: 2025-08-16T03:22:50.502Z (11 months ago)
- Topics: esm, experimental-modules, export, import, node, nodejs, npm
- Language: JavaScript
- Size: 4.88 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# simple-esm
A minimal example of how Node.js ❤️ ESM.
## esm.js
This is a file that's exported as the module's main file. Creates a simple object that uses Node.js's `process.versions` object to log some data + adds a nice message.
## log.js
This is a simple example of how you could import the `esm.js` file and
## package.json
A simple `npm init -y` with the additon of the `type: modules` line.
## What?
I just wanted to build a bare-minimum example of how ESM + Node.js can be used together. Mostly for my own experience, but also hopefully helpful as a good starting point for others to begin to understand.