# essentials

> Essential initialization for every JavaScript process

Latest version **1.2.0** (published 2021-12-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install essentials
pnpm add essentials
yarn add essentials
bun add essentials
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-12-17 |
| First published | 2013-12-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mariusz Nowak |
| Maintainers | medikoo |
| Keywords | initialization, process, promise, setup, unhandledrejections |

## Links

- npm: https://www.npmjs.com/package/essentials
- Repository: https://github.com/medikoo/essentials
- Homepage: https://github.com/medikoo/essentials#readme
- Issues: https://github.com/medikoo/essentials/issues
- npm.io page: https://npm.io/package/essentials

## Dependencies (1)

- [uni-global](https://npm.io/package/uni-global.md) ^1.0.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2021-12-17
- 1.1.1 — 2019-11-08
- 1.1.0 — 2019-11-08
- 1.0.0 — 2019-01-15
- 0.0.2 — 2014-02-20
- 0.0.1 — 2013-12-11

## README

[![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

---
_Source: https://npm.io/package/essentials · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
