Skip to content

cutenode/simple-esm-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-esm-usage

This repo is an example of how to use simple-esm, a full-ES module published to npm, with Node.js without transpilation.

How

Clone this repo:

git clone git@github.com:bnb/simple-esm-usage.git

Navigate to the directory:

cd simple-esm-usage

Install dependencies:

npm install

Run the "app":

node --experimental-modules app.js

# OR

npm start

If you get an error...

node -v

Make sure that returns something above Node.js v12.0.0. If it doesn't, install something above Node.js v12.0.0 💖

About

Example "app" that uses an ESM module from npm within Node.js

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published