| 1 |
[![npm version][npm-image]][npm-url] |
| 2 |
|
| 3 |
# essentials |
| 4 |
|
| 5 |
## Essential initialization for every JavaScript process, ensures that: |
| 6 |
|
| 7 |
#### Error stack traces list all stack frames |
| 8 |
|
| 9 |
Affects all major engines, aside Firefox, in which it's not adjustable and hardcoded to 128. |
| 10 |
|
| 11 |
#### Unhandled promise rejections are exposed as uncaught exceptions |
| 12 |
|
| 13 |
Affects all V8 based engines (so Chrome and Node.js) and Microsoft Edge |
| 14 |
|
| 15 |
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. |
| 16 |
|
| 17 |
### Installation |
| 18 |
|
| 19 |
```bash |
| 20 |
npm install essentials |
| 21 |
``` |
| 22 |
|
| 23 |
### Usage |
| 24 |
|
| 25 |
At top of main (entry) module simply require |
| 26 |
|
| 27 |
```javascript |
| 28 |
require("essentials"); |
| 29 |
``` |
| 30 |
|
| 31 |
[npm-image]: https://img.shields.io/npm/v/essentials.svg |
| 32 |
[npm-url]: https://www.npmjs.com/package/essentials |