open-index/open-npm huggingface dataset:
npm package: @olan88/trycatch
Description: Minimal TypeScript package configured to build both CommonJS and ESM outputs.
Latest version: 0.0.4

# @olan88/trycatch

Minimal TypeScript package configured to build both CommonJS and ESM outputs.

Build:

```bash
npm install
npm run build
```

Usage examples:

ESM:

```js
import tryCatch, { createTryCatch, tryCatch as namedTryCatch } from '@olan88/trycatch';

// default export === named export `tryCatch`
```

CommonJS:

```js
const { default: tryCatch, createTryCatch } = require('@olan88/trycatch');

// also available as named export
const { tryCatch: namedTryCatch } = require('@olan88/trycatch');
```