essentials

1.2.0 • Public • Published

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");

Package Sidebar

Install

npm i essentials

Weekly Downloads

802,603

Version

1.2.0

License

ISC

Unpacked Size

5.22 kB

Total Files

5

Last publish

Collaborators

  • medikoo