Create an npm package that supports both CommonJS and ECMAScript Modules (ESM) using TypeScript.
-
Updated
Jun 17, 2025 - Shell
Create an npm package that supports both CommonJS and ECMAScript Modules (ESM) using TypeScript.
Example of Allure Report usage with Newman, npm and ESM
Example of Allure Report usage with Newman, pnpm and ESM
Example of Allure Report usage with Newman, Yarn and ESM
Hash, randomBytes, and timing-safe compare for Node.js.
In-memory LRU and TTL cache with memoize; small and tree-shakeable (Node and Edge).
PubSub, observer, and typed event emitter (Node and Edge).
Typed error classes, error codes, and serializeError for logging and RPC (Node and Edge).
Test patterns, faker wrapper, enricher, and test-runner helpers (Node and Edge).
Framework-agnostic middleware types and correlation ID middleware (Node and Edge).
Circuit breaker, rate limiter, bulkhead, and jittered backoff for fault-tolerant APIs (Node and Edge).
AsyncLocalStorage request context (requestId, traceId) for Node.js logging and tracing.
Typed factory builder, singleton factory, and error factory helpers (Node and Edge).
Typed file I/O: readFileUtf8, readFileJson, writeFile, ensureDir for Node.js.
Generate and validate UUIDs (v1/v4/v5) with full TypeScript support (Node and Edge).
Adapter helpers, logger and cache adapter interfaces (Node and Edge).
Typed metadata store and annotation helpers for symbols and keys (Node and Edge).
Backend misc: singleton, debounce, throttle, LRU, polling, intervals, enums, once, memoize (Node and Edge).
Add a description, image, and links to the esm topic page so that developers can more easily learn about it.
To associate your repository with the esm topic, visit your repo's landing page and select "manage topics."