File: README.md

package info (click to toggle)
node-tad 3.1.1%2B~cs11.22.49-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,400 kB
  • sloc: javascript: 25,549; makefile: 6
file content (32 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[![npm version][npm-image]][npm-url]

# 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

```bash
npm install essentials
```

### Usage

At top of main (entry) module simply require

```javascript
require("essentials");
```

[npm-image]: https://img.shields.io/npm/v/essentials.svg
[npm-url]: https://www.npmjs.com/package/essentials