Détail du package

suppress-experimental-warnings

dword-design17.8kMIT2.0.0

Filters experimental warnings from Node.js CLI output.

readme

suppress-experimental-warnings

npm version Linux macOS Windows compatible Build status Coverage status Dependency status Renovate enabled
Open in Gitpod Buy Me a Coffee PayPal Patreon

Filters experimental warnings from Node.js CLI output. When using experimental Node.js features like experimental loaders, Node.js outputs some annoying warnings that clutter the CLI: bash (node:1710) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time (Use `node --trace-warnings ...` to show where the warning was created) This package filters those warnings but leaves the others where they are. ## Install bash # npm $ npm install suppress-experimental-warnings # Yarn $ yarn add suppress-experimental-warnings ## Usage ### Via CLI bash $ node --require=suppress-experimental-warnings --experimental-loader=node-esm-loader index.js ### Via environment variable bash $ NODE_OPTIONS="--require=suppress-experimental-warnings --experimental-loader=node-esm-loader" index.js ### Via ESM Since imports in ESM run async, we have to make sure that the import runs before all other imports. This is needed when you cannot pass suppress-experimental-warnings via a a CLI argument. Note that at the time of writing this documentation, the import order seems to be non-deterministic (also for sync import). js import 'suppress-experimental-warnings'; await import('./your-app.js'); ## Contribute Are you missing something or want to contribute? Feel free to file an issue or a pull request! ⚙️ ## Support Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:

Buy Me a Coffee  If you want to send me a one time donation. The coffee is pretty good 😊.
PayPal  Also for one time donations if you like PayPal.
Patreon  Here you can support me regularly, which is great so I can steadily work on projects.

Thanks a lot for your support! ❤️

License

MIT License © Sebastian Landwehr

changelog

2.0.0 (2024-02-13)

Bug Fixes

BREAKING CHANGES

  • node.js >= 18

1.1.17 (2023-05-02)

Bug Fixes

1.1.16 (2023-04-12)

Bug Fixes

  • update dependency output-files to v2.0.27 (6b6088e)

1.1.15 (2023-04-12)

Bug Fixes

  • update dependency @dword-design/base to v9.5.17 (7f9ed6c)

1.1.14 (2023-04-11)

Bug Fixes

  • update dependency @dword-design/base to v9.5.16 (ec75197)

1.1.13 (2023-04-11)

Bug Fixes

  • update dependency output-files to v2.0.25 (7271e58)

1.1.12 (2023-04-10)

Bug Fixes

  • update dependency output-files to v2.0.23 (2fa566f)

1.1.11 (2023-04-10)

Bug Fixes

  • update dependency with-local-tmp-dir to v5.0.1 (218fbe6)

1.1.10 (2023-04-10)

Bug Fixes

  • update dependency @dword-design/babel-register-esm to v1.0.14 (ebd74b0)

1.1.9 (2023-04-10)

Bug Fixes

  • update dependency output-files to v2.0.21 (479e619)

1.1.8 (2023-04-09)

Bug Fixes

  • update dependency @dword-design/functions to v4.1.7 (9672495)

1.1.7 (2023-04-09)

Bug Fixes

1.1.6 (2023-04-09)

Bug Fixes

  • update dependency @dword-design/functions to v4.1.5 (0af2ef2)

1.1.5 (2023-04-08)

Bug Fixes

  • update dependency @dword-design/babel-register-esm to v1.0.12 (9aa06bf)

1.1.4 (2023-02-15)

Bug Fixes

1.1.3 (2023-01-04)

Bug Fixes

  • add example for using inside a module (#9) (9728aa6)

1.1.2 (2022-12-03)

Bug Fixes

  • update config files (e85d30f)
  • write GitHub metadata to package.json [description] (#3) (720b35e)

1.1.1 (2022-12-03)

Bug Fixes

1.1.0 (2022-12-03)

Bug Fixes

Features

1.0.0 (2022-12-03)

Features