Socket
Socket
Sign inDemoInstall

essentials

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    essentials

Essential initialization for every JavaScript process


Version published
Weekly downloads
923K
decreased by-1.72%
Maintainers
1
Install size
101 kB
Created
Weekly downloads
 

Changelog

Source

1.2.0 (2021-12-17)

Features

  • Prevent doubled load of the module (otherwise unhandled rejections are silent) (b8c5536)

Readme

Source

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

Keywords

FAQs

Last updated on 17 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc