Skip to content

Latest commit

History

History

dotenv-es6-import-pitfall

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

examples/dotenv-es6-import-pitfall

An example of an ES6 import pitfall. See invalid.mjs and then valid.mjs.

Note how invalid.mjs does not correctly log the API_KEY environment variable.

USAGE

npm install
node invalid.mjs
node valid.mjs