JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 827282
  • Score
    100M100P100Q168341F
  • License ISC

Essential initialization for every JavaScript process

Package Exports

  • essentials

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (essentials) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm version

essentials

Essential initialization for every JavaScript process, ensures that:

Error stack traces list all stack frames

Affects all major engines, aside Firefox, in which it's not adjustable and hardcoded to 128.

Unhandled promise rejections are exposed as uncaught exceptions

Affects all V8 based engines (so Chrome and Node.js) and Microsoft Edge

In other engines it is recommended to rely on some Promise polyfill, which ensures unhandled rejections are being communicated with unhandledrejection events on global object.

Installation

npm install essentials

Usage

At top of main (entry) module simply require

require("essentials");